CollectionLayout

abstract class CollectionLayout(orientation: Int, reverse: Boolean, rangeRatio: Float? = null, useBackgroundChangeSets: Boolean = false, isReconciliationEnabled: Boolean = false, hasDynamicItemHeight: Boolean = false, val canMeasureRecycler: Boolean = false, mainAxisWrapContent: Boolean = false, preallocationPerMountContentEnabled: Boolean)

Provide layout configuration options to a Collection

Parameters

orientation
snapMode

How contents snaps to position after a scroll @see SnapUtil.SnapMode

reverse

Reverse item traversal and layout order @see LinearLayoutManager#setReverseLayout

Constructors

Link copied to clipboard
fun CollectionLayout(orientation: Int, reverse: Boolean, rangeRatio: Float? = null, useBackgroundChangeSets: Boolean = false, isReconciliationEnabled: Boolean = false, hasDynamicItemHeight: Boolean = false, canMeasureRecycler: Boolean = false, mainAxisWrapContent: Boolean = false, preallocationPerMountContentEnabled: Boolean)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val recyclerConfiguration: RecyclerConfiguration