From d38a60508d43feb875b9f6e97d919721bd1b7f00 Mon Sep 17 00:00:00 2001 From: r-ca Date: Mon, 29 Jan 2024 05:15:51 +0900 Subject: [PATCH] =?UTF-8?q?=E5=AF=BE=E5=BF=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../component/viewer/ViewerBodyFragment.java | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/component/viewer/src/main/java/one/nem/lacerta/component/viewer/ViewerBodyFragment.java b/component/viewer/src/main/java/one/nem/lacerta/component/viewer/ViewerBodyFragment.java index 3fe30549..69912bea 100644 --- a/component/viewer/src/main/java/one/nem/lacerta/component/viewer/ViewerBodyFragment.java +++ b/component/viewer/src/main/java/one/nem/lacerta/component/viewer/ViewerBodyFragment.java @@ -93,9 +93,16 @@ public class ViewerBodyFragment extends Fragment { RecyclerView recyclerView = view.findViewById(R.id.recycler_view); recyclerView.setLayoutManager(new LinearLayoutManager(getContext())); - ViewerBodyAdapter viewerBodyAdapter = new ViewerBodyAdapter(fileName -> { - Toast.makeText(getContext(), fileName, Toast.LENGTH_SHORT).show(); - // TODO-rca: なにか処理をもたせる + ViewerBodyAdapter viewerBodyAdapter = new ViewerBodyAdapter(new ItemClickListener() { + @Override + public void onItemClick(String fileName) { + + } + + @Override + public void onItemLongClick(String fileName, int position) { + + } }); recyclerView.setAdapter(viewerBodyAdapter);