- Step 1. Add to your build file
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
- Step 2. Add the dependency
dependencies {
implementation 'com.github.khan-mujeeb:Custom-Toast-Library:v1.0.0'
}
CustomToast.simpleToast(this,message);
int time_duration;
time_duration = 0; // for LENGTH_SHORT
time_duration = 1; // for LENGTH_LONG
CustomToast.simpleToast(this,message,time_duration);