Skip to content

sandeepjak2007/droidtoast

Repository files navigation

Simple Android Toast Library (Droid Toast 🚀)

Welcome to the Simple Android Toast Library!

Installation

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' }

Implementation

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:

image

Java:

image

Screenshots

Success 👍:

DroidToastFailure

Failure 😣:

DroidToastSuccess

Warning 🤔:

DroidToastWarning