You are on page 1of 2

<?xml version="1.0" encoding="utf-8"?

>
<androidx.drawerlayout.widget.DrawerLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:fitsSystemWindows="true"
tools:openDrawer="start"
android:background="@android:color/white"
tools:context=".MainActivity">
<androidx.coordinatorlayout.widget.CoordinatorLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
>

<com.google.android.material.appbar.AppBarLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:fitsSystemWindows="true"

>

<androidx.appcompat.widget.Toolbar
android:fitsSystemWindows="true"
android:id="@+id/topAppBarID"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
app:title="Workspace"
app:menu="@menu/top_app_bar"
android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
style="@style/Widget.MaterialComponents.Toolbar.Primary"
android:background="@android:color/holo_blue_dark"
></androidx.appcompat.widget.Toolbar>

</com.google.android.material.appbar.AppBarLayout>

<!-- Note: A RecyclerView can also be used -->

<androidx.core.widget.NestedScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
app:layout_behavior="@string/appbar_scrolling_view_behavior"
android:id="@+id/drawerID"
>
</androidx.core.widget.NestedScrollView>

</androidx.coordinatorlayout.widget.CoordinatorLayout>
<!--
<com.google.android.material.navigation.NavigationView
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:id="@+id/navigationID"
android:layout_gravity="start|left"
app:headerLayout="@layout/drawer_header"
app:menu="@menu/drawer_menu"
></com.google.android.material.navigation.NavigationView>-->

</androidx.drawerlayout.widget.DrawerLayout>

You might also like