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 applyUxRestrictions(CarUxRestrictions restrictions)

Applies car UX restrictions to child views.

Inherited methods

Public constructors

SubheaderListItem.ViewHolder

public SubheaderListItem.ViewHolder (View itemView)

Parameters
itemView View

Public methods

getText

public TextView getText ()

Returns
TextView

Protected methods

applyUxRestrictions

protected void applyUxRestrictions (CarUxRestrictions restrictions)

Applies car UX restrictions to child views.

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

Parameters
restrictions CarUxRestrictions: current car UX restrictions.