ComposableTitleViewHolder
ViewHolder for displaying a title item. This class is responsible for binding data to the title view, summary view, and extra title view. It also handles layout adjustments based on whether a sub-label is present.
This ViewHolder supports different types of ViewData:
AppInfoViewData: Displays app-specific information, including label, sub-label, and extra label. It dynamically adjusts the layout if a sub-label is present and visible.
CategoryViewData: Displays a category title.
AllAppsViewData: Displays a generic "All Apps" title.
If the ViewData implements the Highlightable interface, the title text will be highlighted based on the provided highlight information.
The ViewHolder manages DisposableHandles to clean up resources (like listeners) when the view is recycled or when new data is bound.
Parameters
The root view of the item layout.