Thursday, July 30, 2020

Material Bottom Sheets library for Android

Bottom Sheets in android will help you make your application more appealing to your end users with its sleek stutter-free implementation of the Material Bottom Sheets.
Material Bottom Sheets library for Android

Getting Started
Make sure that you've added the jcenter() repository to your top-level build.gradle file.
buildscript {
    //...
    repositories {
        //...
        jcenter()
    }
    //...
}
Groovy
Add the library dependency to your module-level build.gradle file.
ext {
    //...
    bottomSheetsLibraryVersion = "1.0.0"
}

dependencies {
    //...
    implementation "com.arthurivanets.bottomsheet:bottomsheets-core:1.0.0"
}
Groovy
Enable the jetifier and androidX support in the top-level gradle.properties file.
//...
android.enableJetifier=true
android.useAndroidX=true
//....
Groovy
Update your compileSdkVersion in the module-level build.gradle file to 28+.
//...
android {
    //...
    compileSdkVersion 28
    //...
}
//...
Groovy
Update your com.android.support.appcompat.* dependency to the new androidx.appcompat.* alternative.
//...
dependencies {
    //...
    implementation "androidx.appcompat:appcompat:1.0.2"
    //...
}

No comments:

Post a Comment