Interface

SpatialArrangement.Vertical

Used to specify the vertical arrangement of the layout's children in layouts like SpatialColumn.

RevenueCat

RevenueCat

Add subscriptions to your apps in minutes

Ad Get started for free
Android
@JvmDefaultWithCompatibility
public interface Vertical

Used to specify the vertical arrangement of the layout's children in layouts like SpatialColumn.

Functions

arrange

public fun Density.arrange(totalSize: Int, sizes: IntArray, outPositions: IntArray)

Vertically places the layout children.

Parameters

totalSize Available space that can be occupied by the children, in pixels.
sizes An array of sizes of all children, in pixels.
outPositions An array of the size of sizes that returns the calculated positions. Position of each child is from the top edge of the parent to center of the child, in pixels.