From cbc1d139afcd46370eda035e544152f3db3fc8bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=8D=E3=82=80=E3=81=AD=E3=81=93?= Date: Fri, 19 Jan 2024 17:27:43 +0900 Subject: [PATCH] =?UTF-8?q?Revert=20"=E3=83=86=E3=82=B9=E3=83=88"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit ef48223d465593974768b0d943228025d98fb23b. --- app/src/main/res/layout/activity_main.xml | 59 +++++++------------ app/src/main/res/menu/drawer_menu.xml | 7 --- .../lacerta/feature/home/HomeTopFragment.java | 3 +- .../src/main/res/layout/fragment_home_top.xml | 14 ++++- .../home/src/main/res/menu/drawer_menu.xml | 4 ++ 5 files changed, 38 insertions(+), 49 deletions(-) delete mode 100644 app/src/main/res/menu/drawer_menu.xml diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml index b726cd3b..2117b2e1 100644 --- a/app/src/main/res/layout/activity_main.xml +++ b/app/src/main/res/layout/activity_main.xml @@ -1,47 +1,32 @@ - - + - - - - - - - - - + + \ No newline at end of file diff --git a/app/src/main/res/menu/drawer_menu.xml b/app/src/main/res/menu/drawer_menu.xml deleted file mode 100644 index 9041ecda..00000000 --- a/app/src/main/res/menu/drawer_menu.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - \ No newline at end of file diff --git a/feature/home/src/main/java/one/nem/lacerta/feature/home/HomeTopFragment.java b/feature/home/src/main/java/one/nem/lacerta/feature/home/HomeTopFragment.java index d093709c..0b1c39a5 100644 --- a/feature/home/src/main/java/one/nem/lacerta/feature/home/HomeTopFragment.java +++ b/feature/home/src/main/java/one/nem/lacerta/feature/home/HomeTopFragment.java @@ -118,8 +118,7 @@ public class HomeTopFragment extends Fragment { // Set the Toolbar ((AppCompatActivity)getActivity()).setSupportActionBar(toolbar); - // Activity側のDrawerLayoutを取得 - DrawerLayout drawer = getActivity().findViewById(R.id.); + DrawerLayout drawer = view.findViewById(R.id.drawer_layout); ActionBarDrawerToggle toggle = new ActionBarDrawerToggle( getActivity(), drawer, toolbar, one.nem.lacerta.shared.ui.R.string.placeholder, one.nem.lacerta.shared.ui.R.string.placeholder); drawer.addDrawerListener(toggle); diff --git a/feature/home/src/main/res/layout/fragment_home_top.xml b/feature/home/src/main/res/layout/fragment_home_top.xml index fb74430d..9f6268a3 100644 --- a/feature/home/src/main/res/layout/fragment_home_top.xml +++ b/feature/home/src/main/res/layout/fragment_home_top.xml @@ -1,5 +1,6 @@ - @@ -29,7 +30,7 @@ android:layout_width="match_parent" android:layout_height="?attr/actionBarSize" app:layout_collapseMode="pin" - app:title="HOGE" /> + app:title="HOGE"/> @@ -61,4 +62,11 @@ - \ No newline at end of file + + + \ No newline at end of file diff --git a/feature/home/src/main/res/menu/drawer_menu.xml b/feature/home/src/main/res/menu/drawer_menu.xml index fe187c0c..0cc72028 100644 --- a/feature/home/src/main/res/menu/drawer_menu.xml +++ b/feature/home/src/main/res/menu/drawer_menu.xml @@ -1,4 +1,8 @@ + \ No newline at end of file