From f1192645996ade87e7daaaaa3f98ee4a8f757401 Mon Sep 17 00:00:00 2001 From: r-ca Date: Sun, 14 Jan 2024 13:44:04 +0900 Subject: [PATCH] =?UTF-8?q?WIP=20=E7=94=BB=E9=9D=A2=E6=8E=A8=E7=A7=BB?= =?UTF-8?q?=E5=AE=9F=E8=A3=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../debug/DebugMenuVcsGeneralFragment.java | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/feature/debug/src/main/java/one/nem/lacerta/feature/debug/DebugMenuVcsGeneralFragment.java b/feature/debug/src/main/java/one/nem/lacerta/feature/debug/DebugMenuVcsGeneralFragment.java index 4bc76263..8792a3f0 100644 --- a/feature/debug/src/main/java/one/nem/lacerta/feature/debug/DebugMenuVcsGeneralFragment.java +++ b/feature/debug/src/main/java/one/nem/lacerta/feature/debug/DebugMenuVcsGeneralFragment.java @@ -3,11 +3,18 @@ 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 java.util.ArrayList; +import java.util.List; + +import one.nem.lacerta.feature.debug.common.adapter.DebugMenuListItemAdapter; +import one.nem.lacerta.feature.debug.common.model.DebugMenuListItem; + /** * A simple {@link Fragment} subclass. * Use the {@link DebugMenuVcsGeneralFragment#newInstance} factory method to @@ -35,6 +42,15 @@ public class DebugMenuVcsGeneralFragment 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_vcs_general, container, false); + View view = inflater.inflate(R.layout.fragment_debug_menu_vcs_general, container, false); + + RecyclerView recyclerView = view.findViewById(R.id.recycler_view); + recyclerView.setLayoutManager(new androidx.recyclerview.widget.LinearLayoutManager(getContext())); + List debugMenuListItems = new ArrayList<>(); + + DebugMenuListItemAdapter adapter = new DebugMenuListItemAdapter(debugMenuListItems); + recyclerView.setAdapter(adapter); + + return view; } } \ No newline at end of file