From 3f58c623f3fff3cf4cd3e686fdc07367a4af15e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=8D=E3=82=80=E3=81=AD=E3=81=93?= Date: Fri, 12 Jan 2024 12:40:46 +0900 Subject: [PATCH] =?UTF-8?q?LayoutManager=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../debug/DebugMenuLibraryItemListPageFragment.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/feature/debug/src/main/java/one/nem/lacerta/feature/debug/DebugMenuLibraryItemListPageFragment.java b/feature/debug/src/main/java/one/nem/lacerta/feature/debug/DebugMenuLibraryItemListPageFragment.java index c58cacf1..9a37e795 100644 --- a/feature/debug/src/main/java/one/nem/lacerta/feature/debug/DebugMenuLibraryItemListPageFragment.java +++ b/feature/debug/src/main/java/one/nem/lacerta/feature/debug/DebugMenuLibraryItemListPageFragment.java @@ -4,6 +4,7 @@ import android.os.Bundle; import androidx.annotation.AnimatorRes; import androidx.fragment.app.Fragment; +import androidx.recyclerview.widget.LinearLayoutManager; import androidx.recyclerview.widget.RecyclerView; import android.view.LayoutInflater; @@ -62,11 +63,9 @@ public class DebugMenuLibraryItemListPageFragment extends Fragment { } RecyclerView recyclerView = view.findViewById(R.id.item_recycler_view); + recyclerView.setAdapter(new ItemAdapter(libraryItemPage.getListItems())); - ArrayList listItems = libraryItemPage.getListItems(); - - ItemAdapter itemAdapter = new ItemAdapter(listItems); - recyclerView.setAdapter(itemAdapter); + recyclerView.setLayoutManager(new LinearLayoutManager(getContext())); return view; }