display Snack Bar

fun View.displaySnackBar(    message: String,     isItLong: Boolean = false,     action: Pair<String, View.OnClickListener>? = null)

Method to display Snackbar

Parameters

message

message to display

isItLong

is the SnackBar gonna be short or long?

action

pair of string and action that can be attached to snackBar, nullable

Sources

Link copied to clipboard