Use material toolbar without action bar

This commit is contained in:
Kirill Kamakin
2022-11-18 22:42:56 +01:00
parent ac0eb2bfd2
commit e86b24c3f6
8 changed files with 19 additions and 54 deletions

View File

@@ -10,8 +10,7 @@
<androidx.coordinatorlayout.widget.CoordinatorLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true">
android:layout_height="match_parent">
<com.google.android.material.appbar.AppBarLayout
android:id="@+id/toolbar_holder"
@@ -24,7 +23,9 @@
style="@style/Widget.MaterialComponents.Toolbar.Primary"
android:layout_width="match_parent"
android:layout_height="?actionBarSize"
app:layout_scrollFlags="scroll|snap|enterAlways" />
app:layout_scrollFlags="scroll|snap|enterAlways"
app:menu="@menu/main_toolbar"
app:navigationIcon="@drawable/ic_toolbar" />
</com.google.android.material.appbar.AppBarLayout>
<androidx.fragment.app.FragmentContainerView