activity_conversations.xml

 1<?xml version="1.0" encoding="utf-8"?>
 2<layout xmlns:android="http://schemas.android.com/apk/res/android">
 3
 4    <androidx.drawerlayout.widget.DrawerLayout
 5        android:layout_width="match_parent"
 6        android:layout_height="match_parent"
 7        android:fitsSystemWindows="true">
 8
 9    <LinearLayout
10        android:layout_width="match_parent"
11        android:layout_height="match_parent"
12        android:fitsSystemWindows="true"
13        android:orientation="vertical">
14
15        <com.google.android.material.appbar.AppBarLayout
16            android:layout_width="match_parent"
17            android:layout_height="wrap_content">
18
19            <com.google.android.material.appbar.MaterialToolbar
20                android:id="@+id/toolbar"
21                android:layout_width="match_parent"
22                android:layout_height="wrap_content"
23                android:minHeight="?attr/actionBarSize" />
24
25        </com.google.android.material.appbar.AppBarLayout>
26
27        <FrameLayout
28            android:id="@+id/main_fragment"
29            android:layout_width="match_parent"
30            android:layout_height="match_parent" />
31    </LinearLayout>
32
33    <com.mikepenz.materialdrawer.widget.MaterialDrawerSliderView
34        android:id="@+id/drawer"
35        android:layout_width="wrap_content"
36        android:layout_height="match_parent"
37        android:layout_gravity="start"
38        android:fitsSystemWindows="true" />
39
40    </androidx.drawerlayout.widget.DrawerLayout>
41</layout>