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.
Properties
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.
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
Finds and returns a CollectionItem at the specified position in the adapter's data set.
Returns the position of the first item with the given id, otherwise, returns -1.