CollectionPrimitiveViewAdapter

RecyclerView adapter that can be used to render a list of CollectionItems. The adapter will create a PrimitiveRecyclerViewHolder for each item and will call CollectionItem.onBindView and CollectionItem.onViewRecycled on the holder when the item is bound and recycle respectively.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

Optional layout data that provides additional configuration and metadata for the collection's layout behavior. This can be used to store layout-specific information such as span counts, orientation, or other layout parameters that influence how items are arranged in the RecyclerView.

Link copied to clipboard

Factory function for creating CollectionItemRootHostHolder instances. This function is called by the adapter when a new view holder needs to be created. Must be set before the adapter starts creating view holders.

Functions

Link copied to clipboard
Link copied to clipboard

Finds and returns a CollectionItem at the specified position in the adapter's data set.

Link copied to clipboard

Returns the position of the first item with the given id, otherwise, returns -1.

Link copied to clipboard
open override fun getItemCount(): Int
Link copied to clipboard
open override fun getItemId(position: Int): Long
Link copied to clipboard
Link copied to clipboard
open override fun getItemViewType(position: 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
fun notifyItemMoved(p0: Int, p1: 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
open override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): PrimitiveRecyclerViewHolder
Link copied to clipboard
open override fun onViewRecycled(viewHolder: PrimitiveRecyclerViewHolder)
Link copied to clipboard
open fun setHasStableIds(p0: Boolean)
Link copied to clipboard