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

Summary

Nested types

A contract for laying out children horizontally.

A contract for laying out children horizontally or vertically.

A contract for laying out children vertically.

Public functions

RemoteArrangement.HorizontalOrVertical

Place children such that each two adjacent ones are spaced by a fixed space distance across the main axis.

RemoteArrangement.HorizontalOrVertical

Place children such that each two adjacent ones are spaced by a fixed space distance across the main axis.

RemoteArrangement.Horizontal

Place children horizontally such that each two adjacent ones are spaced by a fixed space distance.

RemoteArrangement.Vertical

Place children vertically such that each two adjacent ones are spaced by a fixed space distance.

RemoteArrangement.Horizontal

Place children horizontally such that each two adjacent ones are spaced by a fixed space distance.

RemoteArrangement.Vertical

Place children vertically such that each two adjacent ones are spaced by a fixed space distance.

Public properties

RemoteArrangement.Vertical

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

RemoteArrangement.HorizontalOrVertical

Place children vertically such that they are centered on the main axis.

RemoteArrangement.Horizontal

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

RemoteArrangement.HorizontalOrVertical

Place children with equal space around them.

RemoteArrangement.HorizontalOrVertical

Place children with equal space between them, including the edges.

RemoteArrangement.HorizontalOrVertical

Place children with equal space between them, but not on the edges.

RemoteArrangement.Horizontal

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

RemoteArrangement.Vertical

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

Public functions

spacedBy

Added in 1.0.0-alpha07
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: RemoteDp

The space between adjacent children.

spacedBy

Added in 1.0.0-alpha07
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: RemoteFloat

The space between adjacent children.

spacedBy

Added in 1.0.0-alpha07
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: RemoteDp

The space between adjacent children.

alignment: RemoteAlignment.Horizontal

The alignment of the spaced children inside the parent.

spacedBy

Added in 1.0.0-alpha07
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: RemoteDp

The space between adjacent children.

alignment: RemoteAlignment.Vertical

The alignment of the spaced children inside the parent.

spacedBy

Added in 1.0.0-alpha07
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: RemoteFloat

The space between adjacent children.

alignment: RemoteAlignment.Horizontal

The alignment of the spaced children inside the parent.

spacedBy

Added in 1.0.0-alpha07
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: RemoteFloat

The space between adjacent children.

alignment: RemoteAlignment.Vertical

The alignment of the spaced children inside the parent.

Public properties

Bottom

Added in 1.0.0-alpha07
val BottomRemoteArrangement.Vertical

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

Center

Added in 1.0.0-alpha07
val CenterRemoteArrangement.HorizontalOrVertical

Place children vertically such that they are centered on the main axis.

End

Added in 1.0.0-alpha07
val EndRemoteArrangement.Horizontal

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

SpaceAround

Added in 1.0.0-alpha07
val SpaceAroundRemoteArrangement.HorizontalOrVertical

Place children with equal space around them.

SpaceBetween

Added in 1.0.0-alpha07
val SpaceBetweenRemoteArrangement.HorizontalOrVertical

Place children with equal space between them, including the edges.

SpaceEvenly

Added in 1.0.0-alpha07
val SpaceEvenlyRemoteArrangement.HorizontalOrVertical

Place children with equal space between them, but not on the edges.

Start

Added in 1.0.0-alpha07
val StartRemoteArrangement.Horizontal

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

Top

Added in 1.0.0-alpha07
val TopRemoteArrangement.Vertical

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