Welcome to the Simple Android Toast Library!
Add the following dependency to your app's build.gradle
file:
implementation 'com.github.sandeepjak2007:droidtoast:1.0.2'
Add the following dependency to your main build.gradle
file:
maven { url 'https://jitpack.io' }
Kotlin:
DroidToast.showToast(this, "Simple Failure Message from sample library", status = DroidToast.FAILURE)
DroidToast.showToast(this, "Simple Success Message from sample library", status = DroidToast.SUCCESS)
DroidToast.showToast(this, "Simple Warning Message from sample library", status = DroidToast.WARNING)
Java:
DroidToast.INSTANCE.showToast(this, "Simple Failure Message from sample library", null, DroidToast.FAILURE);
DroidToast.INSTANCE.showToast(this, "Simple Success Message from sample library", null, DroidToast.SUCCESS);
DroidToast.INSTANCE.showToast(this, "Simple Warning Message from sample library", null, DroidToast.WARNING);
Kotlin:
Java:
Success 👍:
Failure 😣:
Warning 🤔: