diff options
Diffstat (limited to 'app/src/main/res/layout/activity_main.xml')
-rw-r--r-- | app/src/main/res/layout/activity_main.xml | 34 |
1 files changed, 24 insertions, 10 deletions
diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml index 4cc95a2..3e1b702 100644 --- a/app/src/main/res/layout/activity_main.xml +++ b/app/src/main/res/layout/activity_main.xml @@ -9,18 +9,32 @@ android:fitsSystemWindows="true" tools:openDrawer="start"> - <!--<include--> - <!--layout="@layout/app_bar_main"--> - <!--android:layout_width="match_parent"--> - <!--android:layout_height="match_parent"/>--> - <fragment - android:name="androidx.navigation.fragment.NavHostFragment" - android:id="@+id/nav_host_fragment" + <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" - app:defaultNavHost="true" - app:navGraph="@navigation/nav_graph" - /> + android:orientation="vertical"> + + <com.google.android.material.appbar.AppBarLayout + android:id="@+id/appbar" + android:layout_width="match_parent" + android:layout_height="wrap_content"> + + <androidx.appcompat.widget.Toolbar + android:id="@+id/toolbar" + android:layout_width="match_parent" + android:layout_height="?attr/actionBarSize"/> + + </com.google.android.material.appbar.AppBarLayout> + <fragment + android:name="androidx.navigation.fragment.NavHostFragment" + android:id="@+id/nav_host_fragment" + android:layout_width="match_parent" + android:layout_height="match_parent" + app:defaultNavHost="true" + app:navGraph="@navigation/nav_graph" + /> + + </LinearLayout> <com.google.android.material.navigation.NavigationView |