public 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

Overview

Holds views of SubHeaderListItem.

Summary

Fields
from RecyclerView.ViewHolderitemView
Constructors
publicViewHolder(View itemView)

Methods
public TextViewgetText()

public voidonUxRestrictionsChanged(CarUxRestrictions restrictionsInfo)

Updates child views with current car UX restrictions.

from ListItem.ViewHolderaddCleanUp, cleanUp
from RecyclerView.ViewHoldergetAbsoluteAdapterPosition, getAdapterPosition, getBindingAdapter, getBindingAdapterPosition, getItemId, getItemViewType, getLayoutPosition, getOldPosition, getPosition, isRecyclable, setIsRecyclable, toString
from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructors

public ViewHolder(View itemView)

Methods

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: current car UX restrictions.

public TextView getText()