mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-26 09:43: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.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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user