LeanbackListPreferenceDialogFragment.ViewHolder


public class LeanbackListPreferenceDialogFragment.ViewHolder extends RecyclerView.ViewHolder implements View.OnClickListener


ViewHolder of the List.

Summary

Inherited methods

From androidx.recyclerview.widget.RecyclerView.ViewHolder
final int

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

final int

This method is deprecated.

This method is confusing when adapters nest other adapters.

final @Nullable RecyclerView.Adapter<RecyclerView.ViewHolder>

Returns the Adapter that last bound this ViewHolder.

final int

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

final long

Returns The itemId represented by this ViewHolder.

final int
final int

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

final int

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

final int

This method is deprecated.

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

final boolean
final void
setIsRecyclable(boolean recyclable)

Informs the recycler whether this item can be recycled.

String

Public constructors

ViewHolder

Added in 1.1.0
Deprecated in 1.1.0
public ViewHolder(
    @NonNull View view,
    @NonNull LeanbackListPreferenceDialogFragment.ViewHolder.OnItemClickListener listener
)

Public methods

getContainer

Added in 1.1.0
Deprecated in 1.1.0
public ViewGroup getContainer()

getTitleView

Added in 1.1.0
Deprecated in 1.1.0
public TextView getTitleView()

getWidgetView

Added in 1.1.0
Deprecated in 1.1.0
public Checkable getWidgetView()

onClick

Added in 1.1.0
Deprecated in 1.1.0
public void onClick(View v)