Simple Toast library
Step 1. Add the JitPack repository to your build file
Add this in your root build.gradle
file (not your module build.gradle
file):
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
Step 2. Add the dependency
Add this to your module's build.gradle
file (make sure the version matches the JitPack badge above):
dependencies {
implementation 'com.github.lucky93agarwal:LuckyToast:Tag'
}
This step is optional, but if you want you can configure some Toasty parameters. Place this anywhere in your app:
LuckyToast.simpleToast(context, message, duration);
LuckyToast.simpleToast(MainActivity.this,"Show New Data",1); // required