From 153242ef663919494ee515ae311a2381a093f0da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=8D=E3=82=80=E3=81=AD=E3=81=93?= Date: Mon, 22 Jan 2024 11:27:56 +0900 Subject: [PATCH] WIP --- .../lacerta/feature/library/LibraryTopFragment.java | 8 ++++++++ feature/library/src/main/res/menu/dir_menu.xml | 11 +++++++++++ 2 files changed, 19 insertions(+) create mode 100644 feature/library/src/main/res/menu/dir_menu.xml diff --git a/feature/library/src/main/java/one/nem/lacerta/feature/library/LibraryTopFragment.java b/feature/library/src/main/java/one/nem/lacerta/feature/library/LibraryTopFragment.java index 5ac527f8..8dd366d8 100644 --- a/feature/library/src/main/java/one/nem/lacerta/feature/library/LibraryTopFragment.java +++ b/feature/library/src/main/java/one/nem/lacerta/feature/library/LibraryTopFragment.java @@ -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); + } } diff --git a/feature/library/src/main/res/menu/dir_menu.xml b/feature/library/src/main/res/menu/dir_menu.xml new file mode 100644 index 00000000..451c94a4 --- /dev/null +++ b/feature/library/src/main/res/menu/dir_menu.xml @@ -0,0 +1,11 @@ + + + + + + \ No newline at end of file