INNER CODE UNIT · Kotlin
RelativeInfo
mikepenz/FastAdapter · fastadapter/src/main/java/com/mikepenz/fastadapter/FastAdapter.kt:843
class RelativeInfo<Item : GenericItem> {
var adapter: IAdapter<Item>? = null
var item: Item? = null
var position = RecyclerView.NO_POSITION
}
/**
* A ViewHolder provided from the FastAdapter to allow handling the important event's within the ViewHolder
* instead of the item
*
* @param Item
*/
abstract class ViewHolder<Item : GenericItem>(itemView: View) : RecyclerView.ViewHolder(itemView) {
/** Binds the data of this item onto the viewHolder */
abstract fun bindView(item: Item, payloads: List<Any>)
/** View needs to release resources when its recycled */