public abstract class

ListItem.ViewHolder

extends RecyclerView.ViewHolder

implements OnUxRestrictionsChangedListener

 java.lang.Object

androidx.recyclerview.widget.RecyclerView.ViewHolder

↳androidx.car.widget.ListItem.ViewHolder

Subclasses:

SubheaderListItem.ViewHolder, ActionListItem.ViewHolder, SeekbarListItem.ViewHolder, RadioButtonListItem.ViewHolder, TextListItem.ViewHolder, SwitchListItem.ViewHolder

Overview

ViewHolder that supports ListItem.ViewBinder.

Summary

Fields
from RecyclerView.ViewHolderitemView
Constructors
publicViewHolder(View itemView)

Methods
public final voidaddCleanUp(ListItem.ViewBinder<ListItem.ViewHolder> cleanUp)

Stores clean up ViewBinders that will be called in cleanUp().

public final voidcleanUp()

Removes customization from previous ListItem.

from RecyclerView.ViewHoldergetAbsoluteAdapterPosition, getAdapterPosition, getBindingAdapter, getBindingAdapterPosition, getItemId, getItemViewType, getLayoutPosition, getOldPosition, getPosition, isRecyclable, setIsRecyclable, toString
from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructors

public ViewHolder(View itemView)

Methods

public final void cleanUp()

Removes customization from previous ListItem. Intended to be used when this ViewHolder is bound to a ListItem.

public final void addCleanUp(ListItem.ViewBinder<ListItem.ViewHolder> cleanUp)

Stores clean up ViewBinders that will be called in cleanUp().