The Android Developer Challenge is back! Submit your idea before December 2.

ViewHolder

abstract class ViewHolder : RecyclerView.ViewHolder, OnUxRestrictionsChangedListener
kotlin.Any
   ↳ androidx.recyclerview.widget.RecyclerView.ViewHolder
   ↳ androidx.car.widget.ListItem.ViewHolder

ViewHolder that supports ViewBinder.

Summary

Public constructors

<init>(itemView: View!)

Public methods

Unit

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

Unit

Removes customization from previous ListItem.

Inherited functions

Inherited properties

Public constructors

<init>

ViewHolder(itemView: View!)

Public methods

addCleanUp

fun addCleanUp(@Nullable cleanUp: ListItem.ViewBinder<ListItem.ViewHolder!>?): Unit

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

cleanUp

fun cleanUp(): Unit

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