PickerViewHolder

A generic RecyclerView.ViewHolder for picker items.

This class provides a base implementation for binding data to views and handling view recycling. Subclasses can override methods to provide specific behavior for different item types.

Parameters

view

The view for this ViewHolder.

Inheritors

Constructors

Link copied to clipboard
constructor(view: View)

Functions

Link copied to clipboard
open fun bindAdapter(adapter: AbsAdapter)

Binds the adapter to this ViewHolder.

Link copied to clipboard
open fun bindData(data: ViewData)

Updates the enabled/disabled state of this ViewHolder if the ViewData is an instance of AppInfoViewData.

Link copied to clipboard
open fun onViewRecycled()

Called when the view is recycled.

Link copied to clipboard
open fun setViewEnableState(enable: Boolean)

Sets the enabled state of the itemView and its children.