LeanbackListPreferenceDialogFragment.ViewHolder

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


ViewHolder of the List.

Summary

Public constructors

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 constructors

ViewHolder

Added in 1.1.0
Deprecated in 1.1.0
ViewHolder(
    view: View,
    listener: LeanbackListPreferenceDialogFragment.ViewHolder.OnItemClickListener
)

Public functions

getContainer

Added in 1.1.0
Deprecated in 1.1.0
fun getContainer(): ViewGroup!

getTitleView

Added in 1.1.0
Deprecated in 1.1.0
fun getTitleView(): TextView!

getWidgetView

Added in 1.1.0
Deprecated in 1.1.0
fun getWidgetView(): Checkable!

onClick

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