Generic💎🔮⛏ toast library
Hey there👋, I have designed this beautiful generic💎🔮⛏ toast library for android(java & kotlin)


Project Dependency
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
Module Dependency
dependencies { implementation 'com.github.smdi:GenericToast:3.0.0'
}
Implementation with title and message
GenericToast.
showToast(activity, //activity
"Success", //title
"Connection established", //message
GenericToast.LENGTH_SHORT, //duration
GenericToast.SUCCESS, //type
GenericToast.DARK, //mode
R.font.abeezee_regular, //title font
GenericToast.DEFAULT_FONT)); //message font
Implementation with message
GenericToast.
showToast(activity, //activity
"Connection established", //message
GenericToast.LENGTH_SHORT, //duration
GenericToast.SUCCESS, //type
GenericToast.DARK, //mode
R.font.abeezee_regular, //title font
GenericToast.DEFAULT_FONT)); //message font
Default font
If you want you use system default font, pass GenericToast.DEFAULT_FONT as parameter
GenericToast.DEFAULT_FONT
Five✋ types
GenericToast.SUCCESS
GenericToast.ERROR
GenericToast.WARNING
GenericToast.INFO
GenericToast.CUSTOM
Two✌ modes
GenericToast.LITE
GenericToast.DARK
Two✌ dedicated durations⏰
GenericToast.LENGTH_SHORT //2 seconds
GenericToast.LENGTH_LONG //4 seconds
For Queries & Issues: https://github.com/smdi/GenericToast
Follow my work on GitHub: https://github.com/smdi
Follow my work on Behance: https://www.behance.net/aihamza1438ae7
Follow me on Linkedin: https://www.linkedin.com/in/737ba2237/
YouTube Channel: https://www.youtube.com/channel/UCPXSt8suTFVoB1-5lPZS5hA