import追加, Inject

This commit is contained in:
r-ca 2023-12-18 01:32:44 +09:00
parent 81053009e0
commit 4fb93c41e8
No known key found for this signature in database
GPG Key ID: 6A72911AC73464A9

View File

@ -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;
}
}