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

SpaceEvenly

object SpaceEvenly : Arrangement.Vertical, Arrangement.Horizontal
kotlin.Any
   ↳ androidx.ui.layout.Arrangement.SpaceEvenly

Place children such that they are spaced evenly across the main axis, including free space before the first child and after the last child.

Summary

Public methods
List<Int>
arrange(totalSize: Int, size: List<Int>, layoutDirection: LayoutDirection)

Horizontally places the layout children inside the Row.

List<Int>
arrange(totalSize: Int, size: List<Int>)

Vertically places the layout children inside the Column.

Public methods

arrange

fun arrange(
    totalSize: Int,
    size: List<Int>,
    layoutDirection: LayoutDirection
): List<Int>

Horizontally places the layout children inside the Row.

Parameters
totalSize: Int Available space that can be occupied by the children.
size: List<Int> A list of sizes of all children.
layoutDirection: LayoutDirection A layout direction, left-to-right or right-to-left, of the parent layout that should be taken into account when determining positions of the children.

arrange

fun arrange(
    totalSize: Int,
    size: List<Int>
): List<Int>

Vertically places the layout children inside the Column.

Parameters
totalSize: Int Available space that can be occupied by the children.
size: List<Int> A list of sizes of all children.