MainActivity: Switch to FragmentContainerView for navigation

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
Aayush Gupta
2023-05-21 10:55:27 +05:30
parent dc9faa31c4
commit 3b79aa2407
3 changed files with 6 additions and 4 deletions

View File

@@ -37,7 +37,7 @@
android:id="@+id/view_toolbar"
layout="@layout/view_toolbar_main" />
<fragment
<androidx.fragment.app.FragmentContainerView
android:id="@+id/nav_host_fragment"
android:name="androidx.navigation.fragment.NavHostFragment"
android:layout_width="match_parent"

View File

@@ -37,7 +37,7 @@
android:id="@+id/view_toolbar"
layout="@layout/view_toolbar_main" />
<fragment
<androidx.fragment.app.FragmentContainerView
android:id="@+id/nav_host_fragment"
android:name="androidx.navigation.fragment.NavHostFragment"
android:layout_width="match_parent"