Added binding between navigation view and navigation components

Removed bunch of code focusing on the hamburger not being stationary
This commit is contained in:
Viktor De Pasquale
2019-04-11 21:17:54 +02:00
parent 94ba7cb0c5
commit 0efaddff23
8 changed files with 70 additions and 128 deletions
@@ -19,7 +19,15 @@
android:layout_width="match_parent"
android:layout_height="wrap_content">
<include layout="@layout/toolbar" />
<androidx.appcompat.widget.Toolbar
android:id="@+id/main_toolbar"
onNavigationClick="@{() -> viewModel.navPressed()}"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="@color/primary"
app:navigationIcon="@drawable/ic_menu"
app:title="@string/magisk"
app:titleTextColor="@android:color/white" />
</com.google.android.material.appbar.AppBarLayout>