SmartDialog
A simple library to show custom dialog in android
Step 1. Add the JitPack repository to your build file
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
Step 2. Add the dependency
dependencies {
implementation 'com.github.jeanclaudesoft:SmartDialog:1.0'
}
The library use lottie animation so add
implementation "com.airbnb.android:lottie:$lottieVersion"
To find lottie version visit https://github.com/airbnb/lottie-android
To show Success Dialog
SmartDialogBox.showSuccessDialog(Context, "message", "closing button text");
To show Error Dialog
SmartDialogBox.showErrorDialog(Context, "message", "closing button text");
To show Info Dialog
SmartDialogBox.showInfoDialog(Context, "message", "closing button text");
To show Empty Result Dialog
SmartDialogBox.showSearchDialog(Context, "message", "closing button text");
To show No Internet Dialog
SmartDialogBox.showInternetDialog(Context, "message", "closing button text");