TtToastContainer
A container for TtToasts, used when calling TtToast.show.
Parameters
The display context.
The attribute set provided in the layout XML file.
The default style attribute set. The default value is CoreThemeR.attr.tt_toastcontainer_style
.
Constructors
Properties
Animation to play when a toast is added to this container.
Animation to show when a toast is removed from this container.
The bottom margin of the toast to be be displayed. To set this based on the position of another view, see the setToastMarginReference binding adapter.
The left margin of the toast to be be displayed. To set this based on the position of another view, see the setToastMarginReference binding adapter.
The right margin of the toast to be be displayed. To set this based on the position of another view, see the setToastMarginReference binding adapter.
The top margin of the toast to be be displayed. To set this based on the position of another view, see the setToastMarginReference binding adapter.
The maximum width in pixels of the toast to be be displayed.
Functions
Dismiss the currently shown TtToast. If no toast is shown, this method does nothing.
Inherited functions
Sets the toast margins of a TtToastContainer to match the bounds of the descendant referenceView. This is useful when a toast container has to show toasts of various independent descendant views relative to a specific view. offset can be used to apply a margin within the bounds of the reference view.