Google is committed to advancing racial equity for Black communities. See how.

Vertical

interface Vertical
androidx.compose.foundation.layout.Arrangement.Vertical

Used to specify the vertical arrangement of the layout's children in a Column.

Summary

Public methods
abstract Unit
arrange(totalSize: Int, size: IntArray, density: Density, outPosition: IntArray)

Vertically places the layout children inside the Column.

Properties
open Dp

Spacing that should be added between any two adjacent layout children.

Public methods

arrange

abstract fun arrange(
    totalSize: Int,
    size: IntArray,
    density: Density,
    outPosition: IntArray
): Unit

Vertically places the layout children inside the Column.

Parameters
totalSize: Int Available space that can be occupied by the children.
size: IntArray An array of sizes of all children.
density: Density The current density.
outPosition: IntArray An array of the size of size that returns the calculated positions.

Properties

spacing

open val spacing: Dp

Spacing that should be added between any two adjacent layout children.