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

ViewBinder

interface ViewBinder<VH : Any!>
androidx.car.widget.ListItem.ViewBinder

Functional interface to provide a way to interact with views in ViewHolder. ListItem calls all added ViewBinders when it binds to ViewHolder.

Summary

Public methods

abstract Unit
bind(viewHolder: VH)

Provides a way to interact with views in view holder.

Public methods

bind

abstract fun bind(viewHolder: VH): Unit

Provides a way to interact with views in view holder.