BaseBindListAdapter
open class BaseBindListAdapter<T : Any>(var mContext: Context, val mVariableId: Int, diffCallback: ItemDiffUtil<T>) : ListAdapter<ItemWrapper<T>, ItemBindHolder<T>> , ItemClickListener<T>
Since
1.2.0
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
Returns ItemBindHolder by default. If you want to customize ItemBindHolder you need to inherit ItemBindHolder and override the setViewHolder method to use your customized ItemBindHolder as the return value.
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.