-
Notifications
You must be signed in to change notification settings - Fork 0
SnackbarUtils
Shanti Ranjan Das edited this page Jan 25, 2020
·
2 revisions
-
showDefaultSnackBar(currentContext: Context, msg: String, snackBarDuration: Int = Snackbar.LENGTH_SHORT)
Show a snackbar with default duration. Provide context , string msg and duration. -
showDefaultSnackBar(currentContext: Context, @StringRes stringResId: Int, snackBarDuration: Int = Snackbar.LENGTH_SHORT)
Show a snackbar with default duration. Provide context, string resource ID and duration. -
hideDefaultSnackbar()
Hide the snackbar which is shown by calling above methods only.