CardListLayoutParameters

data class CardListLayoutParameters(val viewportWidth: Double, val viewportHeight: Double, val cardMaxHeight: Double? = null, val paddingTop: Double = 16.0, val paddingBottom: Double = 16.0, val paddingHorizontal: Double = 16.0, val unfocusedVisiblePercent: Int = 25, val showStackWhileFocused: Boolean = true, val topContentHeight: Double = 0.0, val isTopContentVisible: Boolean = true, val topContentProgress: Double = 1.0, val scrollOffset: Double = 0.0, val stackOffset: Double = 14.0, val maxVisibleCardsInStack: Int = 5, val frontCardVisibleHeightFraction: Double = 0.25, val spacing: Double = 16.0)

Parameters configuring the layout calculations for a vertical card list.

Constructors

Link copied to clipboard
constructor(viewportWidth: Double, viewportHeight: Double, cardMaxHeight: Double? = null, paddingTop: Double = 16.0, paddingBottom: Double = 16.0, paddingHorizontal: Double = 16.0, unfocusedVisiblePercent: Int = 25, showStackWhileFocused: Boolean = true, topContentHeight: Double = 0.0, isTopContentVisible: Boolean = true, topContentProgress: Double = 1.0, scrollOffset: Double = 0.0, stackOffset: Double = 14.0, maxVisibleCardsInStack: Int = 5, frontCardVisibleHeightFraction: Double = 0.25, spacing: Double = 16.0)

Properties

Link copied to clipboard

optional maximum height constraint for cards.

Link copied to clipboard

fraction of the front card visible in the 3D stack.

Link copied to clipboard

whether top content should be displayed when no card is focused.

Link copied to clipboard

maximum number of visible card layers in the 3D stack.

Link copied to clipboard

bottom padding for the card list in dp/points.

Link copied to clipboard

horizontal padding for the cards in dp/points.

Link copied to clipboard

top padding for the card list in dp/points.

Link copied to clipboard

current vertical scroll offset in dp/points.

Link copied to clipboard

whether unfocused cards collapse into a bottom stack when a card is focused.

Link copied to clipboard

vertical spacing between elements in dp/points (e.g. 16.0).

Link copied to clipboard

vertical offset between cards in the bottom 3D stack in dp/points.

Link copied to clipboard

measured height of the top content slot in dp/points.

Link copied to clipboard

animation progress for top content (0.0 = fully hidden, 1.0 = fully visible).

Link copied to clipboard

percentage of each card visible when not focused (0 to 100).

Link copied to clipboard

the available viewport height in dp/points.

Link copied to clipboard

the available viewport width in dp/points.