BaseRcvDataBindingViewHolder

open class BaseRcvDataBindingViewHolder<BINDING : ViewDataBinding>(@LayoutRes xmlRes: Int, parent: ViewGroup, attachToRoot: Boolean = false) : RootViewHolder

Base RecyclerView ViewHolder with DataBinding support.
Inflates XML once and exposes a lazily bound binding instance.

DataBinding을 지원하는 기본 RecyclerView ViewHolder입니다.
XML을 한 번 인플레이트하고 지연 초기화된 binding 인스턴스를 제공합니다.

Parameters

BINDING

DataBinding type generated from item layout.

아이템 레이아웃에서 생성된 DataBinding 타입입니다.

xmlRes

Item layout resource ID.

아이템 레이아웃 리소스 ID입니다.

parent

Parent ViewGroup used for inflation context.

인플레이트 컨텍스트로 사용하는 부모 ViewGroup입니다.

attachToRoot

Whether to attach inflated view to parent immediately.

인플레이트한 뷰를 부모에 즉시 부착할지 여부입니다.

Constructors

Link copied to clipboard
constructor(@LayoutRes xmlRes: Int, parent: ViewGroup, attachToRoot: Boolean = false)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Lazily initialized DataBinding instance bound to itemView.

itemView에 바인딩된 지연 초기화 DataBinding 인스턴스입니다.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun setIsRecyclable(recyclable: Boolean)