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 Toasttoast.stoast("Simple");
// For Simple Short Toast
toast.lwarn("Warning");
// For Warning Long Toasttoast.swarn("Warning");
// For Warning Short Toast
toast.linfo("Info");
// For Info Long Toasttoast.sinfo("info");
// For Info Short Toast
- Fork the project. ❤️
- Make required changes and commit.
- Generate pull request. Mention all the required description regarding changes you made. Happy coding.:-)
This Project is licensed under MIT license
. View license.