public final class

TextListItem.ViewHolder

extends ListItem.ViewHolder

 java.lang.Object

androidx.recyclerview.widget.RecyclerView.ViewHolder

androidx.car.widget.ListItem.ViewHolder

↳androidx.car.widget.TextListItem.ViewHolder

Overview

Holds views of TextListItem.

Summary

Fields
from RecyclerView.ViewHolderitemView
Constructors
publicViewHolder(View itemView)

Methods
public TextViewgetBody()

public ViewGroupgetContainerLayout()

public ImageViewgetPrimaryIcon()

public ImageViewgetSupplementalIcon()

public ViewgetSupplementalIconDivider()

public SwitchgetSwitch()

public ViewgetSwitchDivider()

public TextViewgetTitle()

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 ViewGroup getContainerLayout()

public ImageView getPrimaryIcon()

public TextView getTitle()

public TextView getBody()

public ImageView getSupplementalIcon()

public View getSupplementalIconDivider()

public View getSwitchDivider()

public Switch getSwitch()