LeanbackListPreferenceDialogFragmentCompat.ViewHolder


class LeanbackListPreferenceDialogFragmentCompat.ViewHolder : RecyclerView.ViewHolder, View.OnClickListener


ViewHolder for each Item in the List.

Summary

Inherited functions

From androidx.recyclerview.widget.RecyclerView.ViewHolder
Int

Returns the Adapter position of the item represented by this ViewHolder with respect to the RecyclerView's Adapter.

Int

This function is deprecated.

This method is confusing when adapters nest other adapters.

RecyclerView.Adapter<RecyclerView.ViewHolder!>?

Returns the Adapter that last bound this ViewHolder.

Int

Returns the Adapter position of the item represented by this ViewHolder with respect to the Adapter that bound it.

Long

Returns The itemId represented by this ViewHolder.

Int
Int

Returns the position of the ViewHolder in terms of the latest layout pass.

Int

When LayoutManager supports animations, RecyclerView tracks 3 positions for ViewHolders to perform animations.

Int

This function is deprecated.

This method is deprecated because its meaning is ambiguous due to the async handling of adapter updates.

Boolean
Unit
setIsRecyclable(recyclable: Boolean)

Informs the recycler whether this item can be recycled.

String!

Public functions

getContainer

Added in 1.1.0
fun getContainer(): ViewGroup!

getTitleView

Added in 1.1.0
fun getTitleView(): TextView!

getWidgetView

Added in 1.1.0
fun getWidgetView(): Checkable!

onClick

Added in 1.1.0
fun onClick(v: View!): Unit