belongs to Maven artifact androidx.car:car:1.0.0-alpha1

SubheaderListItem.ViewHolder

public static class SubheaderListItem.ViewHolder
extends ListItem.ViewHolder

java.lang.Object
   ↳ androidx.recyclerview.widget.RecyclerView.ViewHolder
     ↳ androidx.car.widget.ListItem.ViewHolder
       ↳ androidx.car.widget.SubheaderListItem.ViewHolder


Holds views of SubHeaderListItem.

Summary

Inherited fields

Public constructors

SubheaderListItem.ViewHolder(View itemView)

Public methods

TextView getText()

Protected methods

void complyWithUxRestrictions(CarUxRestrictions restrictions)

Update children views to comply with car UX restrictions.

Inherited methods

Public constructors

SubheaderListItem.ViewHolder

SubheaderListItem.ViewHolder (View itemView)

Parameters
itemView View

Public methods

getText

TextView getText ()

Returns
TextView

Protected methods

complyWithUxRestrictions

void complyWithUxRestrictions (CarUxRestrictions restrictions)

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.