Skip to content

Cir0X/snackalert

Repository files navigation

SnackAlert

A small library to show context colored snackbar's.

Screencast

Download

It's currently published via jitpack

Add it in your root build.gradle at the end of repositories:

allprojects {
	repositories {
		...
		maven { url "https://jitpack.io" }
	}
}

and then the dependecy:

dependencies {
	compile 'com.github.Cir0X:snackalert:0.3'
}

Usage

SnackAlert.success(view, "success");

SnackAlert.error(view, "error");

SnackAlert.info(view, "info");

SnackAlert.custom(view, "custom", Color.RED, Color.BLUE);

SnackAlert.longSuccess(view, "long success");

SnackAlert.longError(view, "long error");

SnackAlert.longInfo(view, "long info");

SnackAlert.longCustom(view, "long custom", Color.RED, Color.BLUE);