The Android Developer Challenge is back! Submit your idea before December 2.

ViewHolder

class ViewHolder : ListItem.ViewHolder, OnUxRestrictionsChangedListener
kotlin.Any
   ↳ androidx.recyclerview.widget.RecyclerView.ViewHolder
   ↳ androidx.car.widget.ListItem.ViewHolder
   ↳ androidx.car.widget.SeekbarListItem.ViewHolder

Holds views of SeekbarListItem.

Summary

Public constructors

<init>(itemView: View!)

Public methods

ViewGroup

ImageView

SeekBar

ImageView

View

TextView

Unit

Updates child views with current car UX restrictions.

Inherited functions

Inherited properties

Public constructors

<init>

ViewHolder(itemView: View!)

Public methods

getContainerLayout

@NonNull fun getContainerLayout(): ViewGroup

getPrimaryIcon

@NonNull fun getPrimaryIcon(): ImageView

getSeekBar

@NonNull fun getSeekBar(): SeekBar

getSupplementalIcon

@NonNull fun getSupplementalIcon(): ImageView

getSupplementalIconDivider

@NonNull fun getSupplementalIconDivider(): View

getText

@NonNull fun getText(): TextView

onUxRestrictionsChanged

fun onUxRestrictionsChanged(restrictionsInfo: CarUxRestrictions!): Unit

Updates child views with current car UX restrictions.

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

Parameters
restrictionInfo CarUxRestrictions!: The new UX restriction information
restrictionsInfo CarUxRestrictions!: current car UX restrictions.