TtListRecyclerViewAdapter

interface TtListRecyclerViewAdapter

An interface that allows external binding adapters to set the HeaderListItemViewFactory and ContentListItemViewFactory and to get the IndicatorContentProvider of a specific position.

Types

Link copied to clipboard
class ContentAreaViewHolder(view: TtInformationControl) : RecyclerView.ViewHolder

The view holder class for content views.

Link copied to clipboard
class HeaderViewHolder(view: View) : RecyclerView.ViewHolder

The view holder class for header views.

Functions

Link copied to clipboard
abstract fun getIndicatorContentProvider(position: Int): IndicatorContentProvider?

Gets the IndicatorContentProvider for the list item at position. Returns null if no indicator content provider is available.

Link copied to clipboard
abstract fun setContentViewFactory(ttContentListItemViewFactory: ContentListItemViewFactory)

Sets the ttContentListItemViewFactory to the adapter.

Link copied to clipboard
abstract fun setHeaderViewFactory(ttHeaderListItemViewFactory: HeaderListItemViewFactory)

Sets the ttHeaderListItemViewFactory to the adapter.