This commit is contained in:
r-ca 2024-01-29 05:15:51 +09:00
parent cc1d2d2756
commit d38a60508d
No known key found for this signature in database
GPG Key ID: 6A72911AC73464A9

View File

@ -93,9 +93,16 @@ public class ViewerBodyFragment extends Fragment {
RecyclerView recyclerView = view.findViewById(R.id.recycler_view); RecyclerView recyclerView = view.findViewById(R.id.recycler_view);
recyclerView.setLayoutManager(new LinearLayoutManager(getContext())); recyclerView.setLayoutManager(new LinearLayoutManager(getContext()));
ViewerBodyAdapter viewerBodyAdapter = new ViewerBodyAdapter(fileName -> { ViewerBodyAdapter viewerBodyAdapter = new ViewerBodyAdapter(new ItemClickListener() {
Toast.makeText(getContext(), fileName, Toast.LENGTH_SHORT).show(); @Override
// TODO-rca: なにか処理をもたせる public void onItemClick(String fileName) {
}
@Override
public void onItemLongClick(String fileName, int position) {
}
}); });
recyclerView.setAdapter(viewerBodyAdapter); recyclerView.setAdapter(viewerBodyAdapter);