MainAxisAlignment

enum class MainAxisAlignment
kotlin.Any
   ↳ kotlin.Enum<androidx.ui.layout.MainAxisAlignment>
   ↳ androidx.ui.layout.MainAxisAlignment

Used to specify the alignment of a layout's children, in main axis direction.

Summary

Enum values

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

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

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.

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

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

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

Enum values

Center

enum val Center : MainAxisAlignment

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

End

enum val End : MainAxisAlignment

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

SpaceAround

enum val SpaceAround : MainAxisAlignment

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

enum val SpaceBetween : MainAxisAlignment

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

enum val SpaceEvenly : MainAxisAlignment

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

Start

enum val Start : MainAxisAlignment

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