效果绝对满足
1.导入依赖
dependencies {
implementation 'com.github.moraisigor:slidingdrawer:1.7.1'
}
2.布局文件
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:layout="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#f1582a">
<hollowsoft.slidingdrawer.SlidingDrawer
android:id="@+id/drawer"
android:layout_width="match_parent"
android:layout_height="match_parent"
layout:content="@+id/content"
layout