Mainactivity XML
Mainactivity XML
>
<androidx.drawerlayout.widget.DrawerLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/drawerLayout"
android:fitsSystemWindows="true"
android:background="#F7FFFFFF"
android:minWidth="19dp">
<ScrollView
android:layout_width="wrap_content"
android:background="#F7FFFFFF"
android:layout_height="wrap_content">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="#F7FFFFFF"
android:orientation="vertical">
<androidx.appcompat.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="#F7FFFFFF"
app:subtitleTextColor="#0A0A0A"
app:titleTextColor="#111111" />
<TextView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:text="Hello world"/>
<!-- Your code here -->
</LinearLayout>
</ScrollView>
<com.google.android.material.navigation.NavigationView
android:id="@+id/navigation_menu"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="start"
app:headerLayout="@layout/header"
app:menu="@menu/drawer_menu">
</com.google.android.material.navigation.NavigationView>
</androidx.drawerlayout.widget.DrawerLayout>