From a0e5e77dcbbb1f380888208fc255a1799e4937ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=8D=E3=82=80=E3=81=AD=E3=81=93?= Date: Thu, 7 Dec 2023 12:53:12 +0900 Subject: [PATCH] WIP --- app/src/main/res/layout/activity_main.xml | 22 ++++++++++++++----- app/src/main/res/menu/bottom_menu.xml | 8 +++++++ app/src/main/res/navigation/app_nav_graph.xml | 15 +++++++++++++ .../main/res/navigation/ui_home_nav_graph.xml | 11 ++++++++++ 4 files changed, 51 insertions(+), 5 deletions(-) create mode 100644 app/src/main/res/menu/bottom_menu.xml create mode 100644 app/src/main/res/navigation/app_nav_graph.xml create mode 100644 ui/home/src/main/res/navigation/ui_home_nav_graph.xml diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml index 17eab17b..6f43c270 100644 --- a/app/src/main/res/layout/activity_main.xml +++ b/app/src/main/res/layout/activity_main.xml @@ -6,13 +6,25 @@ android:layout_height="match_parent" tools:context=".MainActivity"> - + app:layout_constraintTop_toTopOf="parent" + + app:defaultNavHost="true" + app:navGraph="@navigation/app_nav_graph"/> + + + + + \ No newline at end of file diff --git a/app/src/main/res/menu/bottom_menu.xml b/app/src/main/res/menu/bottom_menu.xml new file mode 100644 index 00000000..dac74b82 --- /dev/null +++ b/app/src/main/res/menu/bottom_menu.xml @@ -0,0 +1,8 @@ + + + + + + \ No newline at end of file diff --git a/app/src/main/res/navigation/app_nav_graph.xml b/app/src/main/res/navigation/app_nav_graph.xml new file mode 100644 index 00000000..8941863b --- /dev/null +++ b/app/src/main/res/navigation/app_nav_graph.xml @@ -0,0 +1,15 @@ + + + + + + + + + + \ No newline at end of file diff --git a/ui/home/src/main/res/navigation/ui_home_nav_graph.xml b/ui/home/src/main/res/navigation/ui_home_nav_graph.xml new file mode 100644 index 00000000..a0dbba42 --- /dev/null +++ b/ui/home/src/main/res/navigation/ui_home_nav_graph.xml @@ -0,0 +1,11 @@ + + + + + \ No newline at end of file