Vertical
Kotlin
|Java
@Immutable interface Vertical
androidx.compose.foundation.layout.Arrangement.Vertical |
Used to specify the vertical arrangement of the layout's children in layouts like Column.
Summary
Public methods | |
---|---|
abstract Unit |
Vertically places the layout children. |
Properties | |
---|---|
open Dp |
Spacing that should be added between any two adjacent layout children. |
Public methods
arrange
abstract fun Density.arrange(
totalSize: Int,
sizes: IntArray,
outPositions: IntArray
): Unit
Vertically places the layout children.
Parameters | |
---|---|
totalSize: Int | Available space that can be occupied by the children, in pixels. |
sizes: IntArray | An array of sizes of all children, in pixels. |
outPositions: IntArray | An array of the size of sizes that returns the calculated positions relative to the top, in pixels. |