MaterialSnackbar

Last Updated On 2021-07-16

Version 1MinSDK 7Tutorial Video

A new component


Properties

You can set the below properties in the UI part of the builder.

  • ActionTextColor - it's a color value which is set to &hffffffff by default.
  • AnimationMode - it's a Integer value which is set to 1 by default.
  • BackgroundColor - it's a color value which is set to &hff000000 by default.
  • Duration - it's a Integer value which is set to 0 by default.
  • TextColor - it's a color value which is set to &hffffffff by default.

Block Properties

You can set the below blocks properties in the blocks section of the builder.

ActionTextColor

Set action text color of the snackbar


AnchorView

Set component so snackbar will be shown above it


AnimationMode

Set animation type 1 or 2


BackgroundColor

Set background color of the snackbar


Duration

Set duration of the snackbar


TextColor

Set action text color of the snackbar



Methods

You can set the below method blocks in the blocks section of the builder.

Dismiss

Method for Dismiss

IsShowing

Method for IsShowing

Show

Method for Show

ShowWithAction

Method for ShowWithAction


Events

You can set the below event blocks in the blocks section of the builder.

ActionClick

Event for ActionClick