mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-22 07:53:15 +00:00
WIP
This commit is contained in:
parent
05997eafe1
commit
153242ef66
|
@ -72,6 +72,8 @@ public class LibraryTopFragment extends Fragment {
|
|||
// Inflate the layout for this fragment
|
||||
View view = inflater.inflate(R.layout.fragment_library_top, container, false);
|
||||
|
||||
setHasOptionsMenu(true);
|
||||
|
||||
return view;
|
||||
}
|
||||
|
||||
|
@ -95,4 +97,10 @@ public class LibraryTopFragment extends Fragment {
|
|||
});
|
||||
});
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onCreateOptionsMenu(@NonNull Menu menu, @NonNull MenuInflater inflater) {
|
||||
inflater.inflate(R.menu.dir_menu, menu);
|
||||
super.onCreateOptionsMenu(menu, inflater);
|
||||
}
|
||||
}
|
||||
|
|
11
feature/library/src/main/res/menu/dir_menu.xml
Normal file
11
feature/library/src/main/res/menu/dir_menu.xml
Normal file
|
@ -0,0 +1,11 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
|
||||
<item
|
||||
android:id="@+id/menu_item_create_new_folder"
|
||||
android:icon="@drawable/developer_mode_24px"
|
||||
android:title="@string/app_name"
|
||||
app:showAsAction="ifRoom"/> <!-- TODO-rca: change this -->
|
||||
|
||||
</menu>
|
Loading…
Reference in New Issue
Block a user