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.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);