ViewHolder

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

Holds views of SubHeaderListItem.

Summary

Public constructors
<init>(itemView: View!)

Public methods
open TextView!

Protected methods
open Unit
complyWithUxRestrictions(restrictions: CarUxRestrictions!)

Update children views to comply with car UX restrictions.

Inherited functions

Public constructors

<init>

ViewHolder(itemView: View!)

Public methods

getText

open fun getText(): TextView!

Protected methods

complyWithUxRestrictions

protected open fun complyWithUxRestrictions(restrictions: CarUxRestrictions!): Unit

Update children views to comply with car UX restrictions.

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

Parameters
restrictions CarUxRestrictions!: current car UX restrictions.