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 sectionParameters
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
A convenience constructor to populate the ViewModel with the given DrawableResolver and StringResolver.
Functions
Retrieves the ImageSource. If it returns null, no image information will be presented in the indicator. If both getStringResolver and getImageSource 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 getImageSource return a non-null value, the return value of getStringResolver will be adopted by TtScrollBar first.