NavHost追加

This commit is contained in:
r-ca 2024-01-20 17:15:39 +09:00
parent 5d33d188bd
commit 2a34100bf2
No known key found for this signature in database
GPG Key ID: 6A72911AC73464A9

View File

@ -7,4 +7,17 @@
android:layout_height="match_parent" android:layout_height="match_parent"
tools:context=".ViewerMainActivity"> tools:context=".ViewerMainActivity">
<androidx.fragment.app.FragmentContainerView
android:id="@+id/nav_host_fragment"
android:name="androidx.navigation.fragment.NavHostFragment"
android:layout_width="0dp"
android:layout_height="0dp"
app:defaultNavHost="true"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:navGraph="@navigation/component_viewer_navigation"
tools:layout="@layout/fragment_component_viewer_top" />
</androidx.constraintlayout.widget.ConstraintLayout> </androidx.constraintlayout.widget.ConstraintLayout>