Join us for ⁠#Android11: The Beta Launch Show on June 3!

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<IntPx>
arrange(totalSize: IntPx, size: List<IntPx>, layoutDirection: LayoutDirection)

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

Public methods

arrange

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

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

Parameters
totalSize: IntPx Available space that can be occupied by the children.
size: List<IntPx> 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.