Package-level declarations
Types
Link copied to clipboard
Link copied to clipboard
Applies to BaseBindAdapter , BaseBindListAdapter and BaseBindPagingAdapter ViewHolder. If you want to customize your own ViewHolder, you should make your ViewHolder inherit ItemBindHolder and use it as the return value of setViewHolder.
Link copied to clipboard
Link copied to clipboard
Because ItemWrapper is used, the original DiffUtil will be inconvenient to use, so ItemDiffUtil was designed to replace it.
Link copied to clipboard
Link copied to clipboard
class ItemWrapper<T : Any> @JvmOverloads constructor(val data: T?, @LayoutRes val layoutId: Int, var clickListener: OnItemClickListener<T>? = null, var longClickListener: OnItemLongClickListener<T>? = null) : ItemType, ItemClickListener<T>
List item wrapper, used to provide layout id, click events and other related information to the adapter.