mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-23 08:23:15 +00:00
対応
This commit is contained in:
parent
cc1d2d2756
commit
d38a60508d
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user