MainActivity: Move to actual toolbar

Drop downloads icon as its already present in drawer

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
Aayush Gupta
2023-07-18 14:56:38 +05:30
parent 7b306b6315
commit b9d0f15ca3
4 changed files with 21 additions and 85 deletions

View File

@@ -33,9 +33,12 @@
android:layout_width="match_parent"
android:layout_height="match_parent">
<include
android:id="@+id/view_toolbar"
layout="@layout/view_toolbar_main" />
<androidx.appcompat.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:navigationIcon="@drawable/ic_menu_unfold"
app:title="@string/app_name" />
<androidx.fragment.app.FragmentContainerView
android:id="@+id/nav_host_fragment"
@@ -43,7 +46,7 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_above="@id/nav_view"
android:layout_below="@+id/view_toolbar"
android:layout_below="@+id/toolbar"
app:defaultNavHost="true"
app:navGraph="@navigation/mobile_navigation" />
@@ -82,4 +85,4 @@
app:itemIconTint="?android:attr/colorAccent"
app:itemTextAppearance="@style/TextAppearance.Aurora.Line1"
app:menu="@menu/menu_drawer" />
</androidx.drawerlayout.widget.DrawerLayout>
</androidx.drawerlayout.widget.DrawerLayout>