ListItemHeaderViewModel
The ViewModel for populating a header item in a TtListRecyclerView.
A header consists of an Image section
and a Text section
. A schematic overview of the header looks as below:
________________________________
| __ | |
| |__| | Text |
|_______|_______________________|
Image Text
section section
Parameters
A unique stable ID for the header item. See ListItemViewModel.itemId.
The icon for the header item displayed in Image section
.
The text for the header item displayed in Text section
.
Constructors
Properties
Functions
Retrieves the DrawableResolver. If it returns null
, no image information will be presented in the indicator. If both getStringResolver and getDrawableResolver return a non-null value, the return value of getStringResolver will be adopted by TtScrollBar first.
Retrieves the StringResolver. If it returns null
, no text information will be presented in the indicator. If both getStringResolver and getDrawableResolver return a non-null value, the return value of getStringResolver will be adopted by TtScrollBar first.