CuteToast
A material design Toast Library for Android
Purpose
CuteToast is an Android Custom Toast
library that could be used instead of Default Toast
. It does everything as Toast but with some extra spice.
CuteToast allows developers to use Toast with Colorful design and Icons. It's open-source and free to use.
Give it a try.!
What's New
- CuteToast without pre-built icon version added. Check the dependencies.
More changes in Release
Tab.
Screenshots
Click to View High Quality
Prerequisites
Add this in your root build.gradle
file (not your module build.gradle
file):
Dependencies
Add this to your module's build.gradle
file (make sure the version matches the JitPack badge above):
If you want to use only Custom Background Options (no Pre-build Icons), then:
Usage
Each of the following method returns a Toast
. Don't Forget to Call .show()
To display an Info Toast:
To display a Warning Toast:
To display an Error Toast:
To display a Success Toast:
To display a Happy Toast:
To display a Sad Toast:
To display a Confuse Toast:
To display a Delete Toast:
To display a Save Toast:
To display a Normal Toast:
If you don't want the Icons:
Replace true
to false
at the end of the statment.
and same for the other types too.