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 R.attr.tt_toastcontainer_style
.
Constructors
Properties
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.
Functions
Inherited functions
Extensions
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.