CollectionLayout

abstract class CollectionLayout(componentContext: ComponentContext, orientation: Int, reverse: Boolean, rangeRatio: Float? = null, useBackgroundChangeSets: Boolean = false, isIncrementalMountEnabled: Boolean = componentContext.lithoConfiguration.componentsConfig.incrementalMountEnabled, mainAxisWrapContent: Boolean = false, crossAxisWrapMode: CrossAxisWrapMode = CrossAxisWrapMode.NoWrap, preAllocationHandler: PreAllocationHandler?, isCircular: Boolean, enableStableIds: 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
constructor(componentContext: ComponentContext, orientation: Int, reverse: Boolean, rangeRatio: Float? = null, useBackgroundChangeSets: Boolean = false, isIncrementalMountEnabled: Boolean = componentContext.lithoConfiguration.componentsConfig.incrementalMountEnabled, mainAxisWrapContent: Boolean = false, crossAxisWrapMode: CrossAxisWrapMode = CrossAxisWrapMode.NoWrap, preAllocationHandler: PreAllocationHandler?, isCircular: Boolean, enableStableIds: Boolean)

Properties

Link copied to clipboard