This commit is contained in:
ろむねこ 2024-01-22 11:27:56 +09:00
parent 05997eafe1
commit 153242ef66
No known key found for this signature in database
GPG Key ID: FA1F39A1BA37D168
2 changed files with 19 additions and 0 deletions

View File

@ -72,6 +72,8 @@ public class LibraryTopFragment extends Fragment {
// Inflate the layout for this fragment // Inflate the layout for this fragment
View view = inflater.inflate(R.layout.fragment_library_top, container, false); View view = inflater.inflate(R.layout.fragment_library_top, container, false);
setHasOptionsMenu(true);
return view; 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);
}
} }

View 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>