mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-23 00:13:16 +00:00
一応修正
This commit is contained in:
parent
d38a60508d
commit
8731855849
|
@ -106,8 +106,16 @@ public class ViewerListFragment extends Fragment {
|
|||
|
||||
RecyclerView recyclerView = view.findViewById(R.id.body_recycler_view);
|
||||
recyclerView.setLayoutManager(new LinearLayoutManager(getContext()));
|
||||
ViewerBodyAdapter viewerBodyAdapter = new ViewerBodyAdapter(fileName -> {
|
||||
Toast.makeText(getContext(), fileName, Toast.LENGTH_SHORT).show();
|
||||
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