public final class

ActionListItem.ViewHolder

extends ListItem.ViewHolder

 java.lang.Object

androidx.recyclerview.widget.RecyclerView.ViewHolder

androidx.car.widget.ListItem.ViewHolder

↳androidx.car.widget.ActionListItem.ViewHolder

Overview

Holds the children views of ActionListItem.

Summary

Fields
from RecyclerView.ViewHolderitemView
Constructors
publicViewHolder(View itemView)

Methods
public TextViewgetBody()

public ButtongetPrimaryAction()

public ViewgetPrimaryActionDivider()

public ImageViewgetPrimaryIcon()

public ButtongetSecondaryAction()

public ViewgetSecondaryActionDivider()

public TextViewgetTitle()

public voidonUxRestrictionsChanged(CarUxRestrictions restrictions)

public voidsetActionBorderless(boolean isBorderless)

Sets if the action returned is styled as borderless or non-borderless.

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 restrictions)

public void setActionBorderless(boolean isBorderless)

Sets if the action returned is styled as borderless or non-borderless.

By default, this value is true.

Parameters:

isBorderless: Whether or not the action is borderless.

public ImageView getPrimaryIcon()

public TextView getTitle()

public TextView getBody()

public Button getPrimaryAction()

public View getPrimaryActionDivider()

public Button getSecondaryAction()

public View getSecondaryActionDivider()