Interface

TransformingLazyColumnLayoutInfo

Holds the layout information for a TransformingLazyColumn.

Source set: Android
public sealed interface TransformingLazyColumnLayoutInfo

Holds the layout information for a TransformingLazyColumn.

Properties

visibleItems

Source set: Android
public val visibleItems: List<TransformingLazyColumnVisibleItemInfo>

A list of TransformingLazyColumnVisibleItemInfo objects representing the visible items in the list.

totalItemsCount

Source set: Android
public val totalItemsCount: Int

The total count of items passed to TransformingLazyColumn.

viewportSize

Source set: Android
public val viewportSize: IntSize

The size of the viewport in pixels.

reverseLayout

Source set: Android
public val reverseLayout: Boolean

True if the direction of scrolling and layout is reversed.

beforeContentPadding

Source set: Android
public val beforeContentPadding: Int

The content padding in pixels applied before the first item in the direction of scrolling.

When the first item is visible and uses androidx.wear.compose.foundation.lazy.TransformingLazyColumnItemScope.minimumVerticalContentPadding, this value is the maximum of the contentPadding parameter provided to the TransformingLazyColumn and the responsive padding calculated for the item.

When the first item is not visible, this value reflects the contentPadding parameter.

afterContentPadding

Source set: Android
public val afterContentPadding: Int

The content padding in pixels applied after the last item in the direction of scrolling.

When the last item is visible and uses androidx.wear.compose.foundation.lazy.TransformingLazyColumnItemScope.minimumVerticalContentPadding, this value is the maximum of the contentPadding parameter provided to the TransformingLazyColumn and the responsive padding calculated for the item.

When the last item is not visible, this value reflects the contentPadding parameter.

Last updated: