TtEmptyStateView
This view can be shown as a placeholder when the intended content can't be shown. For example, a fragment may show online content. When the fragment's content cannot be shown due to, for example, a connection issue, this view can be shown instead.
A schematic overview of the empty state view:
_________________________________________
| ____________ |
| | | |
| | | |
| | | | Image section
| | | |
| |___________| |
|________________________________________|
| |
| Header |
| | Text section
| Body |
|________________________________________|
| |
| |
| (Primary button) (Secondary button) | Buttons section
| |
|________________________________________|
All theme attributes used by this control are declared in com.tomtom.tools.android.core.theme
. To use this control, it is mandatory to define these attribute values.
The image view will wrap its contents, but is limited to a minimum width set by tt_emptystateview_image_size_minimum
and a maximum width set by tt_emptystateview_image_size_maximum
.
Parameters
The display context.
The attribute set provided in the layout XML file.
The default style attribute set.
Constructors
Properties
Functions
Set ttBodyText by the given StringResolver.
Set ttHeaderText by the given StringResolver.
Set ttImage by the given DrawableResolver.
Inherited functions
Extensions
Adapter to set a TtEmptyStateViewModel for a TtEmptyStateView.