show Snack Bar
public final Unit showSnackBar(Activity activity, View view, Integer textId, Integer colorId, Integer delayMs, Float marginDp)
A utility method that shows a snackbar with a message.
Parameters
activity
The activity to show the snackbar in
view
The view to which the snackbar should be attached
text Id
The message of the snackbar
color Id
The color of the snackbar
delay Ms
The delay in milliseconds after which the snackbar should be dismissed.
margin Dp
The bottom margin in dp to be applied to the snackbar. Setting this value means that the no new snackbar will be shown until the current snackbar is dismissed.