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

SpaceAround

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

Place children such that they are spaced evenly across the main axis, including free space before the first child and after the last child, but half the amount of space existing otherwise between two consecutive children.

Summary

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

Places the layout children inside the parent layout along the main axis.

Public methods

arrange

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

Places the layout children inside the parent layout along the main axis.

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 in horizontal direction.