public object RemoteArrangement
In remote-compose, an arrangement is a contract for how to lay out children in a container that allows for more than one child. This is a mirror of androidx.compose.foundation.layout.Arrangement
Properties
Start
public val Start: RemoteArrangement.Horizontal
Place children horizontally such that they are as close as possible to the start of the main axis.
End
public val End: RemoteArrangement.Horizontal
Place children horizontally such that they are as close as possible to the end of the main axis.
Top
public val Top: RemoteArrangement.Vertical
Place children vertically such that they are as close as possible to the top of the main axis.
Bottom
public val Bottom: RemoteArrangement.Vertical
Place children vertically such that they are as close as possible to the bottom of the main axis.
Center
public val Center: RemoteArrangement.HorizontalOrVertical
Place children vertically such that they are centered on the main axis.
SpaceEvenly
public val SpaceEvenly: RemoteArrangement.HorizontalOrVertical
Place children with equal space between them, but not on the edges.
SpaceBetween
public val SpaceBetween: RemoteArrangement.HorizontalOrVertical
Place children with equal space between them, including the edges.
SpaceAround
public val SpaceAround: RemoteArrangement.HorizontalOrVertical
Place children with equal space around them.
Functions
spacedBy
public fun spacedBy(space: RemoteDp): RemoteArrangement.HorizontalOrVertical
Place 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.
Parameters
| space | The space between adjacent children. |
spacedBy
public fun spacedBy(space: RemoteFloat): RemoteArrangement.HorizontalOrVertical
Place 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.
Parameters
| space | The space between adjacent children. |
spacedBy
public fun spacedBy(
space: RemoteDp,
alignment: RemoteAlignment.Horizontal,
): RemoteArrangement.Horizontal
Place 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.
Parameters
| space | The space between adjacent children. |
| alignment | The alignment of the spaced children inside the parent. |
spacedBy
public fun spacedBy(
space: RemoteFloat,
alignment: RemoteAlignment.Horizontal,
): RemoteArrangement.Horizontal
Place 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.
Parameters
| space | The space between adjacent children. |
| alignment | The alignment of the spaced children inside the parent. |
spacedBy
public fun spacedBy(
space: RemoteDp,
alignment: RemoteAlignment.Vertical,
): RemoteArrangement.Vertical
Place 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.
Parameters
| space | The space between adjacent children. |
| alignment | The alignment of the spaced children inside the parent. |
spacedBy
public fun spacedBy(
space: RemoteFloat,
alignment: RemoteAlignment.Vertical,
): RemoteArrangement.Vertical
Place 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.
Parameters
| space | The space between adjacent children. |
| alignment | The alignment of the spaced children inside the parent. |