You can use this class to customize the SnackBar and to highlight the type of message.
Example:
//Info SnackBar
Snackbar snackbar = Snackbar.make(view, "Here's a Snackbar", Snackbar.LENGTH_LONG)
.setAction("Action", null);
ColoredSnackBar.info(snackbar);
snackbar.show();
//Confirm SnackBar
Snackbar snackbar = Snackbar.make(view, "Here's a Snackbar", Snackbar.LENGTH_LONG)
.setAction("Action", null);
ColoredSnackBar.confirm(snackbar);
snackbar.show();
//Alert SnackBar
Snackbar snackbar = Snackbar.make(view, "Here's a Snackbar", Snackbar.LENGTH_LONG)
.setAction("Action", null);
ColoredSnackBar.error(snackbar);
snackbar.show();