onBindViewHolder

open override fun onBindViewHolder(holder: VH, position: Int)

Binds data to the ViewHolder at the specified position.

지정한 위치의 ViewHolder에 데이터를 바인딩합니다.

Parameters

holder

The ViewHolder to bind.

바인딩 대상 ViewHolder입니다.

position

The position of the item.

아이템 위치입니다.


open override fun onBindViewHolder(holder: VH, position: Int, payloads: MutableList<Any>)

Binds data to the ViewHolder with payload support.
payload를 사용해 ViewHolder 데이터를 바인딩합니다.
Performs full binding if payloads is empty, otherwise partial update.

payload가 비어 있으면 전체 바인딩, 아니면 부분 업데이트를 수행합니다.

Parameters

holder

The ViewHolder to bind.

바인딩 대상 ViewHolder입니다.

position

The position of the item.

아이템 위치입니다.

payloads

The list of payloads for partial updates.

부분 업데이트를 위한 payload 목록입니다.