Fancy-Toast-by-soEpic
Toasts on Steroids. Have Fun
Step 1. Add the JitPack repository to your build file
gradle :-
Add it in your root build.gradle at the end of repositories:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
Step 2. Add the dependency
dependencies {
implementation 'com.github.sidrxd:Fancy-Toast:1.3'
}
Usage:
new FancyToast()
// context
.with(this)
// gravity of FancyToast
.setGravity(Gravity.BOTTOM,0,100)
// set custom icon resource
.setIcon(R.drawable.ic_round_group_work_24)
// set text for FancyToast
.setText("Showing Show")
// corner radius of FancyToast view
.cornerRadius(16)
// show/hide icon
.hideIcon(false)
// finally show the FancyToast
.show();