AbstractViewBindingAdapterSingleSelection
abstract class AbstractViewBindingAdapterSingleSelection<T, VH : RecyclerView.ViewHolder, VB : ViewBinding>(viewHolder: (binding: VB) -> VH, bindingInflater: (LayoutInflater, ViewGroup, Boolean) -> VB, areItemsTheSameCallback: (old: T, new: T) -> Boolean? = { _, _ -> null }, areContentsTheSameCallback: (old: T, new: T) -> Boolean? = { _, _ -> null }, onCreateBinding: (holder: VH) -> Unit = {}) : ListAdapter<T, VH>
Takes leverage of not providing that damn layout res id
USAGE: class TestViewBindingAdapter : AbstractViewBindingAdapter
Constructors
Link copied to clipboard
constructor(viewHolder: (binding: VB) -> VH, bindingInflater: (LayoutInflater, ViewGroup, Boolean) -> VB, areItemsTheSameCallback: (old: T, new: T) -> Boolean? = { _, _ -> null }, areContentsTheSameCallback: (old: T, new: T) -> Boolean? = { _, _ -> null }, onCreateBinding: (holder: VH) -> Unit = {})
Properties
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
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 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