DeweySnackbar

The Snackbar is a view that shows a quick message at the bottom of the screen.

Types

Link copied to clipboard

Callback class for DeweySnackbar instances.

Link copied to clipboard
object Companion
Link copied to clipboard
fun interface OnClickListener

Callback class for snackbar container click event.

Link copied to clipboard
data class Style(@ColorRes val backgroundTintColor: Int, @ColorRes val textColor: Int, @ColorRes val actionTextColor: Int, @ColorRes val iconTintColor: Int)

Style of the Snackbar.

Link copied to clipboard

The UI mode.

Functions

Link copied to clipboard
open override fun getDuration(): Int

Returns the duration that the BottomBar will be displayed.

Link copied to clipboard

Set the accessibility delegate for the action view.

Link copied to clipboard

Register a callback to be invoked when the snackbar shows and dismisses.

Link copied to clipboard

Register a callback to be invoked when the body of the snackbar is clicked.

Link copied to clipboard

Sets the dismiss action of the message.

Link copied to clipboard
fun setExtraBottomMargin(@Px extraBottomMargin: Int): DeweySnackbar

Set the distance between the bottom side of the snackbar and the parent bottom. By default, it's DEFAULT_LINE_OF_DEATH_BOTTOM_MARGIN_DP to achieve the line of death.

Link copied to clipboard
Link copied to clipboard

Sets the icon of the snackbar.

Link copied to clipboard

Set style of the Snackbar.

Link copied to clipboard
Link copied to clipboard

Sets the max line count of the message specified in setTitle.

Link copied to clipboard

Update the text in this DeweySnackbar.

Link copied to clipboard

Set the UI mode of the Snackbar.