AbstractViewBindingCleanAdapter
abstract class AbstractViewBindingCleanAdapter<T, VB : ViewBinding>(bindingInflater: (LayoutInflater, ViewGroup, Boolean) -> VB, areItemsTheSameCallback: (old: T, new: T) -> Boolean? = { _, _ -> null }, areContentsTheSameCallback: (old: T, new: T) -> Boolean? = { _, _ -> null }) : ListAdapter<T, AbstractViewBindingCleanAdapter.AbstractViewHolder<VB>>
Takes leverage of not providing that damn layout res id
USAGE: class TestViewBindingAdapter : AbstractViewBindingCleanAdapter
Constructors
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun findRelativeAdapterPositionIn(@NonNull p0: RecyclerView.Adapter<out RecyclerView.ViewHolder>, @NonNull p1: RecyclerView.ViewHolder, p2: 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
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
Link copied to clipboard
open fun onBindViewHolder(@NonNull p0: AbstractViewBindingCleanAdapter.AbstractViewHolder<VB>, p1: Int, @NonNull p2: MutableList<Any>)
open override fun onBindViewHolder(holder: AbstractViewBindingCleanAdapter.AbstractViewHolder<VB>, position: Int)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): AbstractViewBindingCleanAdapter.AbstractViewHolder<VB>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun RecyclerView.Adapter<*>.onItemRangeChanged(action: (positionStart: Int, itemCount: Int) -> Unit = { _, _ -> }): RecyclerView.AdapterDataObserver
fun RecyclerView.Adapter<*>.onItemRangeChanged(action: (positionStart: Int, itemCount: Int, payload: Any?) -> Unit = { _, _, _ -> }): RecyclerView.AdapterDataObserver
Link copied to clipboard
fun RecyclerView.Adapter<*>.onItemRangeInserted(action: (positionStart: Int, itemCount: Int) -> Unit = { _, _ -> }): RecyclerView.AdapterDataObserver
Link copied to clipboard
fun RecyclerView.Adapter<*>.onItemRangeMoved(action: (fromPosition: Int, toPosition: Int, itemCount: Int) -> Unit = { _, _, _ -> }): RecyclerView.AdapterDataObserver
Link copied to clipboard
fun RecyclerView.Adapter<*>.onItemRangeRemoved(action: (positionStart: Int, itemCount: Int) -> Unit = { _, _ -> }): RecyclerView.AdapterDataObserver
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun RecyclerView.Adapter<*>.registerDataObserver(action: () -> Unit = {}): RecyclerView.AdapterDataObserver
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard