Super Toast Library
A Fully Customised and Customisable Toast.
Type |
Output |
Success |
|
Warning |
|
Error |
|
Information |
|
Default |
|
Gradle DepenDencies
implementation 'com.github.akhilbv1:CustomToastLibrary:Tag'
Add Jitpack to repositories in Project level Build.Gradle
repositories {
google()
jcenter()
maven { url "https://jitpack.io" }
}
How To Call
CustomToast.makeText(this, Toast.LENGTH_SHORT,CustomToast.DEFAULT, "Toast is working",false).show();
Method |
Paramter |
Description |
makeDefaultToast() |
Context context,String message |
Default Toast |
makeSuccessToast() |
Context context,String message,int shouldShowIcon |
Success Toast with message and icon visibility |
makeErrorToast() |
Context context,String message, int shouldShowIcon |
Error Toast with message and icon visibility |
makeWarningToast() |
Context context, String message, int shouldShowIcon |
Warning Toast with message and icon visibility |
makeInfoToast() |
@NonNull Context context, String message, int shouldShowIcon |
Information Toast with message and icon visibility |
Future Release Points
- Provide Options for Custom Layouts
- Add Animations
GitHub