BlurDrawerLayout
DrawerLayout with blur functionality like iOS
Requirements
Kotlin, Android version >= 17
Adding to Project
Add dependencies in gradle
repositories {
jcenter()
}
//dependency
implementation 'org.nosort.blurdrawerlayout:blurdrawerlayout:1.1.0'
Set up renderscript
defaultConfig {
renderscriptTargetApi 19
renderscriptSupportModeEnabled true
}
Simple usage
<?xml version="1.0" encoding="utf-8"?>
<org.nosort.blurdrawerlayout.BlurDrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/blurDrawerLayout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
tools:context=".MainActivity">
<FrameLayout
android:id="@+id/contentLayout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" />
<LinearLayout
android:id="@+id/menuLayout"
android:layout_width="200dp"
android:layout_height="match_parent"
android:layout_gravity="start"
android:gravity="center_horizontal"
android:orientation="vertical">
</LinearLayout>
</org.nosort.blurdrawerlayout.BlurDrawerLayout>