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

ViewHolder

class ViewHolder : ListItem.ViewHolder
kotlin.Any
   ↳ androidx.recyclerview.widget.RecyclerView.ViewHolder
   ↳ androidx.car.widget.ListItem.ViewHolder
   ↳ androidx.car.widget.SubheaderListItem.ViewHolder

Holds views of SubHeaderListItem.

Summary

Public constructors

<init>(itemView: View!)

Public methods

TextView

Unit

Updates child views with current car UX restrictions.

Inherited functions

Inherited properties

Public constructors

<init>

ViewHolder(itemView: View!)

Public methods

getText

@NonNull fun getText(): TextView

onUxRestrictionsChanged

fun onUxRestrictionsChanged(restrictionsInfo: CarUxRestrictions!): Unit

Updates child views with current car UX restrictions.

Text might be truncated to meet length limit required by regulation.

Parameters
restrictionInfo CarUxRestrictions!: The new UX restriction information
restrictionsInfo CarUxRestrictions!: current car UX restrictions.