이제 두 번째 Android 11 개발자 프리뷰를 사용할 수 있습니다. 테스트해 보고 의견을 공유하세요.

ViewHolder

class ViewHolder : ListItem.ViewHolder
kotlin.Any
   ↳ androidx.recyclerview.widget.RecyclerView.ViewHolder
   ↳ androidx.car.widget.ListItem.ViewHolder
   ↳ androidx.car.widget.SubheaderListItem.ViewHolder

Holds views of SubHeaderListItem.

Summary

Public constructors

<init>(itemView: View!)

Public methods

TextView

Unit

Updates child views with current car UX restrictions.

Inherited functions

Inherited properties

Public constructors

<init>

ViewHolder(itemView: View!)

Public methods

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 The new UX restriction information
restrictionsInfo CarUxRestrictions!: current car UX restrictions.