Arrangement

class Arrangement
kotlin.Any
   ↳ androidx.ui.layout.Arrangement

Used to specify the arrangement of the layout's children in Row or Column in the main axis direction (horizontal and vertical, respectively).

Summary

Public constructors

<init>(arrangeBlock: (totalSize: IntPx, elementSize: List<IntPx>) -> List<IntPx>)

Creates an arrangement using the arrangeBlock.

Companion properties

Arrangement

Place children such that they are as close as possible to the beginning of the main axis.

Arrangement

Place children such that they are as close as possible to the middle of the main axis.

Arrangement

Place children such that they are as close as possible to the end of the main axis.

Arrangement

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.

Arrangement

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

Arrangement

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

Public constructors

<init>

Arrangement(arrangeBlock: (totalSize: IntPx, elementSize: List<IntPx>) -> List<IntPx>)

Creates an arrangement using the arrangeBlock. Use it to provide your own arrangement of the layout's children.

Companion properties

Begin

val Begin: Arrangement

Place children such that they are as close as possible to the beginning of the main axis.

Center

val Center: Arrangement

Place children such that they are as close as possible to the middle of the main axis.

End

val End: Arrangement

Place children such that they are as close as possible to the end of the main axis.

SpaceAround

val SpaceAround: Arrangement

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.

SpaceBetween

val SpaceBetween: Arrangement

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

SpaceEvenly

val SpaceEvenly: Arrangement

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