Quickest way to show a toast in android!
Add it in your root build.gradle :
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
Add the dependency:
dependencies {
implementation 'com.github.meet30997:Quicktoast:1.0.0'
}
Create a object of library class
private Quicktoast toast = new Quicktoast(this);
There are three types of toast that you can use.
toast.ltoast("Simple");
// For Simple Long Toast toast.stoast("Simple");
// For Simple Short Toasttoast.lwarn("Warning");
// For Warning Long Toast toast.swarn("Warning");
// For Warning Short Toasttoast.linfo("Info");
// For Info Long Toast toast.sinfo("info");
// For Info Short ToastThis Project is licensed under MIT license
. View license.