SpatialArrangement.Vertical

interface SpatialArrangement.Vertical

Known direct subclasses
SpatialArrangement.AxisIndependent

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


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

Summary

Public functions

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

Vertically places the layout children.

Public properties

open Dp

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

Public functions

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. Position of each child is from the top edge of the parent to center of the child, in pixels.

Public properties

spacing

open val spacingDp

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