onBindViewHolder2

fun onBindViewHolder2(holder: PickerViewHolder, position: Int, payloads: List<Any>)(source)

This method is similar to onBindViewHolder but ensures that partial bind with payload won't be applied for headers and footers.

Parameters

holder

The PickerViewHolder to update.

position

The position of the item within the adapter's data set.

payloads

A non-null list of merged payloads. If not empty and the item is not a header or footer, the wrapped adapter's partial bind is invoked; otherwise, a full bind is performed.