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

SpaceBetween

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

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

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.