It's happening now, watch the livestream.

SubheaderListItem.ViewHolder

public static final 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()
void onUxRestrictionsChanged(CarUxRestrictions restrictionsInfo)

Updates child views with current car UX restrictions.

Inherited methods

Public constructors

SubheaderListItem.ViewHolder

public SubheaderListItem.ViewHolder (View itemView)

Parameters
itemView View

Public methods

getText

public TextView getText ()

Returns
TextView

onUxRestrictionsChanged

public void onUxRestrictionsChanged (CarUxRestrictions restrictionsInfo)

Updates child views with current car UX restrictions.

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

Parameters
restrictionsInfo CarUxRestrictions: current car UX restrictions.