|
| 1 | +<?xml version="1.0" encoding="utf-8"?> |
| 2 | +<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| 3 | + xmlns:app="http://schemas.android.com/apk/res-auto" |
| 4 | + android:layout_width="match_parent" |
| 5 | + android:layout_height="match_parent" |
| 6 | + android:fitsSystemWindows="true"> |
| 7 | + |
| 8 | + <com.google.android.material.appbar.AppBarLayout |
| 9 | + android:id="@+id/appBar" |
| 10 | + style="@style/AppTheme.AppBarLayout.Flat" |
| 11 | + android:layout_width="match_parent" |
| 12 | + android:layout_height="wrap_content" |
| 13 | + android:fitsSystemWindows="false"> |
| 14 | + |
| 15 | + <androidx.appcompat.widget.Toolbar |
| 16 | + android:id="@+id/toolbar" |
| 17 | + android:layout_width="match_parent" |
| 18 | + android:layout_height="?attr/actionBarSize" |
| 19 | + app:layout_collapseMode="pin" |
| 20 | + app:title="@string/app_name" /> |
| 21 | + |
| 22 | + </com.google.android.material.appbar.AppBarLayout> |
| 23 | + |
| 24 | + <androidx.fragment.app.FragmentContainerView |
| 25 | + android:id="@+id/navHostFragment" |
| 26 | + android:name="androidx.navigation.fragment.NavHostFragment" |
| 27 | + android:layout_width="match_parent" |
| 28 | + android:layout_height="match_parent" |
| 29 | + android:layout_marginStart="80dp" |
| 30 | + app:defaultNavHost="true" |
| 31 | + app:layout_behavior="com.google.android.material.appbar.AppBarLayout$ScrollingViewBehavior" |
| 32 | + app:navGraph="@navigation/main_navigation" /> |
| 33 | + |
| 34 | + <com.google.android.material.navigationrail.NavigationRailView |
| 35 | + android:id="@+id/navRail" |
| 36 | + android:layout_width="wrap_content" |
| 37 | + android:layout_height="match_parent" |
| 38 | + android:layout_marginTop="?attr/actionBarSize" |
| 39 | + app:itemRippleColor="?attr/colorTertiaryContainer" |
| 40 | + app:menu="@menu/nav_main" /> |
| 41 | + |
| 42 | +</androidx.coordinatorlayout.widget.CoordinatorLayout> |
0 commit comments