BaseListAdapter
open class BaseListAdapter<T : Any>(var mContext: Context, factories: MutableList<ItemHolder.HolderFactory<T>>, diffCallback: ItemDiffUtil<T>) : ListAdapter<ItemWrapper<T>, ItemHolder<T>> , ItemClickListener<T>
Since
1.2.0
Constructors
Link copied to clipboard
constructor(mContext: Context, factories: MutableList<ItemHolder.HolderFactory<T>>, diffCallback: ItemDiffUtil<T>)
Properties
Functions
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
Register a callback to be invoked when the item is clicked.
Link copied to clipboard
Register a callback to be invoked when the item is clicked and held.
Link copied to clipboard
fun submitList(items: List<T>, @LayoutRes id: Int? = null, commitCallback: Runnable? = null, scope: ItemWrapper<T>.() -> Unit = {})
Submits a new list to be diffed, and displayed.
Link copied to clipboard
Submits a loading layout to be displayed.