This commit is contained in:
ろむねこ 2023-12-07 12:53:12 +09:00
parent f9f537b56a
commit a0e5e77dcb
No known key found for this signature in database
GPG Key ID: FA1F39A1BA37D168
4 changed files with 51 additions and 5 deletions

View File

@ -6,13 +6,25 @@
android:layout_height="match_parent" android:layout_height="match_parent"
tools:context=".MainActivity"> tools:context=".MainActivity">
<TextView
android:layout_width="wrap_content" <androidx.fragment.app.FragmentContainerView
android:layout_height="wrap_content" android:id="@+id/fragmentContainerView2"
android:text="Hello World!" android:name="androidx.navigation.fragment.NavHostFragment"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" /> app:layout_constraintTop_toTopOf="parent"
app:defaultNavHost="true"
app:navGraph="@navigation/app_nav_graph"/>
<com.google.android.material.bottomnavigation.BottomNavigationView
android:layout_width="match_parent"
android:layout_height="match_parent" >
</com.google.android.material.bottomnavigation.BottomNavigationView>
</androidx.constraintlayout.widget.ConstraintLayout> </androidx.constraintlayout.widget.ConstraintLayout>

View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:id="@+id/homeTestUi"
android:title="HomeTestUi" />
</menu>

View File

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<navigation xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/app_nav_graph"
app:startDestination="@id/placeholder">
<include app:graph="@navigation/ui_home_nav_graph" />
<fragment android:id="@+id/placeholder" >
<action
android:id="@+id/action_placeholder_to_ui_home_nav_graph"
app:destination="@id/ui_home_nav_graph" />
</fragment>
</navigation>

View File

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<navigation xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/ui_home_nav_graph"
app:startDestination="@id/homeTestUi">
<fragment
android:id="@+id/homeTestUi"
android:name="one.nem.ui.home.HomeTestUi"
android:label="HomeTestUi" />
</navigation>