AutoAdapter

open class AutoAdapter<T : ItemViewable>(@LayoutRes layout: Int? = null, data: MutableList<T> = mutableListOf(), onBindViewHolder: (holder: BaseAdapter.BaseViewHolder, item: T, position: Int) -> Unit? = null, clickHandler: BaseClickHandler<T>? = null) : BaseDiffAdapter<BaseAdapter.BaseViewHolder, T>

Constructors

Link copied to clipboard
constructor(@LayoutRes layout: Int? = null, data: MutableList<T> = mutableListOf(), onBindViewHolder: (holder: BaseAdapter.BaseViewHolder, item: T, position: Int) -> Unit? = null, clickHandler: (T) -> Unit)
constructor(@LayoutRes layout: Int? = null, data: MutableList<T> = mutableListOf(), onBindViewHolder: (holder: BaseAdapter.BaseViewHolder, item: T, position: Int) -> Unit? = null, clickHandler: BaseClickHandler<T>? = null)

Properties

Link copied to clipboard
open var data: MutableList<T>
Link copied to clipboard
open val headersCount: Int

Functions

Link copied to clipboard
Link copied to clipboard
open fun compareIdsDiff(oldItems: List<Idable>, oldItemPosition: Int, newItems: List<Idable>, newItemPosition: Int): Boolean
Link copied to clipboard
open fun compareItemsDiff(oldItems: List<Idable>, oldItemPosition: Int, newItems: List<Idable>, newItemPosition: Int): Boolean
Link copied to clipboard
open override fun getItemCount(): Int
Link copied to clipboard
open fun getItemId(p0: Int): Long
Link copied to clipboard
open override fun getItemViewType(position: Int): Int
Link copied to clipboard
open override fun getLayout(viewType: Int): Int
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
fun notifyItemMoved(p0: Int, p1: Int)
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
open override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): BaseAdapter.BaseViewHolder
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun setHasStableIds(p0: Boolean)
Link copied to clipboard
open fun update(newItems: List<T>)