CollectionLayout

abstract class CollectionLayout(componentContext: ComponentContext, orientation: Int, reverse: Boolean, rangeRatio: Float? = null, useBackgroundChangeSets: Boolean = false, isReconciliationEnabled: Boolean = componentContext.lithoConfiguration.componentsConfig.isReconciliationEnabled, isIncrementalMountEnabled: Boolean = componentContext.lithoConfiguration.componentsConfig.incrementalMountEnabled, hasDynamicItemHeight: Boolean = false, val canMeasureRecycler: Boolean = false, mainAxisWrapContent: Boolean = false, preAllocationHandler: PreAllocationHandler?)

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
constructor(componentContext: ComponentContext, orientation: Int, reverse: Boolean, rangeRatio: Float? = null, useBackgroundChangeSets: Boolean = false, isReconciliationEnabled: Boolean = componentContext.lithoConfiguration.componentsConfig.isReconciliationEnabled, isIncrementalMountEnabled: Boolean = componentContext.lithoConfiguration.componentsConfig.incrementalMountEnabled, hasDynamicItemHeight: Boolean = false, canMeasureRecycler: Boolean = false, mainAxisWrapContent: Boolean = false, preAllocationHandler: PreAllocationHandler?)

Properties

Link copied to clipboard
Link copied to clipboard