common • net.kernelpanicsoft.archie.gui.layout • Arrangement • Absolute
Absolute
@Immutableobject AbsoluteProperties
Center
@Stableval Center: Arrangement.HorizontalPlace children such that they are as close as possible to the middle of the Row.
Left
@Stableval Left: Arrangement.HorizontalPlace children horizontally such that they are as close as possible to the left edge of the Row.
Right
@Stableval Right: Arrangement.HorizontalPlace children horizontally such that they are as close as possible to the right edge of the Row.
SpaceAround
@Stableval SpaceAround: Arrangement.HorizontalPlace children such that they are spaced evenly horizontally, 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
@Stableval SpaceBetween: Arrangement.HorizontalPlace children such that they are spaced evenly across the main axis, without free space before the first child or after the last child.
SpaceEvenly
@Stableval SpaceEvenly: Arrangement.HorizontalPlace children such that they are spaced evenly across the main axis, including free space before the first child and after the last child.
Functions
aligned
@Stablefun aligned(alignment: Alignment.Horizontal): Arrangement.HorizontalPlace children horizontally one next to the other and align the obtained group according to an alignment.
spacedBy
@Stablefun spacedBy(space: Dp): Arrangement.HorizontalOrVerticalPlace children such that each two adjacent ones are spaced by a fixed space distance across the main axis. The spacing will be subtracted from the available space that the children can occupy.
@Stablefun spacedBy(space: Dp, alignment: Alignment.Horizontal): Arrangement.HorizontalPlace children horizontally such that each two adjacent ones are spaced by a fixed space distance. The spacing will be subtracted from the available width that the children can occupy. An alignment can be specified to align the spaced children horizontally inside the parent, in case there is empty width remaining.
@Stablefun spacedBy(space: Dp, alignment: Alignment.Vertical): Arrangement.VerticalPlace children vertically such that each two adjacent ones are spaced by a fixed space distance. The spacing will be subtracted from the available height that the children can occupy. An alignment can be specified to align the spaced children vertically inside the parent, in case there is empty height remaining.