Fix layout for split view
<?xml version="1.0" encoding="utf-8"?>
-<RelativeLayout
- xmlns:android="http://schemas.android.com/apk/res/android"
+<androidx.drawerlayout.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
+ android:id="@+id/drawerLayout"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent">
+
+ <RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<include
- layout="@layout/toolbar"
android:id="@+id/toolbar"
+ layout="@layout/toolbar"
android:layout_width="match_parent"
- android:layout_height="?attr/actionBarSize"
+ android:layout_height="wrap_content"
android:layout_alignParentTop="true" />
<ProgressBar
style="@style/Widget.AppCompat.ProgressBar.Horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content"
+ android:layout_below="@id/toolbar"
android:layout_marginTop="-6dp"
android:elevation="8dp"
android:max="10000"
- android:visibility="invisible"
- android:layout_below="@id/toolbar" />
+ android:visibility="invisible" />
<LinearLayout
android:id="@+id/container"
</LinearLayout>
</RelativeLayout>
+
+ <androidx.swiperefreshlayout.widget.SwipeRefreshLayout
+ android:id="@+id/material_drawer_swipe_refresh"
+ android:layout_width="wrap_content"
+ android:layout_height="match_parent"
+ android:layout_gravity="start">
+
+ <com.mikepenz.materialdrawer.widget.MaterialDrawerSliderView
+ android:id="@+id/material_drawer_slider"
+ android:layout_width="wrap_content"
+ android:layout_height="match_parent" />
+
+ </androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
+</androidx.drawerlayout.widget.DrawerLayout>
