Perfect Toast Messages
Add this in your root build.gradle :
allprojects {
repositories {
...
maven { url "https://jitpack.io" }
}
}
Add this to your module's build.gradle
dependencies {
implementation 'com.github.emrekotun:CpmToast:1.0.2'
}
Usage
Success Toast
toastSuccess("Message !") // Default Short Duration
toastSuccess("Message !",CpmToast.LONG_DURATION)
Error Toast
toastError("Message !")
Warning Toast
toastWarning("Message !")
Info Toast
toastInfo("Message !")