Skip to content

emrekotun/CpmToast

Repository files navigation

CpmToast

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

normal_tos

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 !")