mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-23 00:13:16 +00:00
import追加, Inject
This commit is contained in:
parent
81053009e0
commit
4fb93c41e8
|
@ -3,17 +3,28 @@ package one.nem.lacerta.feature.debug;
|
|||
import android.os.Bundle;
|
||||
|
||||
import androidx.fragment.app.Fragment;
|
||||
import androidx.recyclerview.widget.RecyclerView;
|
||||
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
|
||||
import javax.inject.Inject;
|
||||
|
||||
import one.nem.lacerta.data.Document;
|
||||
import one.nem.lacerta.feature.debug.common.adapter.DebugMenuDocumentListItemAdapter;
|
||||
import one.nem.lacerta.feature.debug.common.model.DebugMenuDocumentListItem;
|
||||
|
||||
/**
|
||||
* A simple {@link Fragment} subclass.
|
||||
* Use the {@link DebugMenuDocumentTesterListFragment#newInstance} factory method to
|
||||
* create an instance of this fragment.
|
||||
*/
|
||||
public class DebugMenuDocumentTesterListFragment extends Fragment {
|
||||
|
||||
@Inject
|
||||
Document document;
|
||||
|
||||
public DebugMenuDocumentTesterListFragment() {
|
||||
// Required empty public constructor
|
||||
}
|
||||
|
@ -34,6 +45,13 @@ public class DebugMenuDocumentTesterListFragment extends Fragment {
|
|||
public View onCreateView(LayoutInflater inflater, ViewGroup container,
|
||||
Bundle savedInstanceState) {
|
||||
// Inflate the layout for this fragment
|
||||
return inflater.inflate(R.layout.fragment_debug_menu_document_tester_list, container, false);
|
||||
View view = inflater.inflate(R.layout.fragment_debug_menu_document_tester_list, container, false);
|
||||
|
||||
RecyclerView recyclerView = view.findViewById(R.id.recycler_view_document_list);
|
||||
recyclerView.setLayoutManager(new androidx.recyclerview.widget.LinearLayoutManager(getContext()));
|
||||
|
||||
|
||||
|
||||
return view;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user