# SpatialArrangement.Absolute

Artifact: [androidx.xr.compose:compose](https://developer.android.com/jetpack/androidx/releases/xr-compose) [View Source](https://cs.android.com/search?q=file:androidx/xr/compose/subspace/layout/SpatialArrangement.kt+class:androidx.xr.compose.subspace.layout.SpatialArrangement.Absolute) Added in [1.0.0-beta02](https://developer.android.com/jetpack/androidx/releases/xr-compose#1.0.0-beta02)


```
object SpatialArrangement.Absolute
```

<br />

*** ** * ** ***

Used to specify arrangement which doesn't change with layout direction.

## Summary

| ### Public functions |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SpatialArrangement.Horizontal` | `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SpatialArrangement.Absolute#aligned(androidx.xr.compose.subspace.layout.SpatialAlignment.Horizontal)(spatialAlignment: https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SpatialAlignment.Horizontal)` Children placed next to each other horizontally and align them according to the `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SpatialArrangement.Absolute#aligned(androidx.xr.compose.subspace.layout.SpatialAlignment.Horizontal)` given. |
| `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SpatialArrangement.Horizontal` | `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SpatialArrangement.Absolute#spacedBy(androidx.compose.ui.unit.Dp,androidx.xr.compose.subspace.layout.SpatialAlignment.Horizontal)(space: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp, spatialAlignment: https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SpatialAlignment.Horizontal)` Children are placed next to each other with fixed `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SpatialArrangement.Absolute#spacedBy(androidx.compose.ui.unit.Dp,androidx.xr.compose.subspace.layout.SpatialAlignment.Horizontal)` between them horizontally and align them according to the `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SpatialArrangement.Absolute#spacedBy(androidx.compose.ui.unit.Dp,androidx.xr.compose.subspace.layout.SpatialAlignment.Horizontal)` given. |

| ### Public properties |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SpatialArrangement.Horizontal` | `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SpatialArrangement.Absolute#Center()` All children should be arranged at the center of the `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/SpatialRow.composable#SpatialRow(androidx.xr.compose.subspace.layout.SubspaceModifier,androidx.xr.compose.subspace.layout.SpatialAlignment.Vertical,androidx.xr.compose.subspace.layout.SpatialAlignment.Depth,androidx.xr.compose.subspace.layout.SpatialArrangement.Horizontal,kotlin.Function1)`. |
| `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SpatialArrangement.Horizontal` | `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SpatialArrangement.Absolute#Left()` All children should be arranged at the left of the `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/SpatialRow.composable#SpatialRow(androidx.xr.compose.subspace.layout.SubspaceModifier,androidx.xr.compose.subspace.layout.SpatialAlignment.Vertical,androidx.xr.compose.subspace.layout.SpatialAlignment.Depth,androidx.xr.compose.subspace.layout.SpatialArrangement.Horizontal,kotlin.Function1)`. |
| `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SpatialArrangement.Horizontal` | `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SpatialArrangement.Absolute#Right()` All children should be arranged at the right of the `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/SpatialRow.composable#SpatialRow(androidx.xr.compose.subspace.layout.SubspaceModifier,androidx.xr.compose.subspace.layout.SpatialAlignment.Vertical,androidx.xr.compose.subspace.layout.SpatialAlignment.Depth,androidx.xr.compose.subspace.layout.SpatialArrangement.Horizontal,kotlin.Function1)`. |
| `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SpatialArrangement.Horizontal` | `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SpatialArrangement.Absolute#SpaceAround()` There should be equal space around each child. |
| `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SpatialArrangement.Horizontal` | `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SpatialArrangement.Absolute#SpaceBetween()` There should be equal space between the children and no space before the first child or after the last child. |
| `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SpatialArrangement.Horizontal` | `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SpatialArrangement.Absolute#SpaceEvenly()` There should be equal space between the children and before the first child and after the last child. |

## Public functions

### aligned

Added in [1.0.0-beta02](https://developer.android.com/jetpack/androidx/releases/xr-compose#1.0.0-beta02)

```
fun aligned(spatialAlignment: SpatialAlignment.Horizontal): SpatialArrangement.Horizontal
```

Children placed next to each other horizontally and align them according to the `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SpatialArrangement.Absolute#aligned(androidx.xr.compose.subspace.layout.SpatialAlignment.Horizontal)` given. Unlike `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SpatialArrangement#spacedBy(androidx.compose.ui.unit.Dp)`, when layout direction is RTL, children will not be mirrored.

| Parameters |
|---|---|
| `spatialAlignment: https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SpatialAlignment.Horizontal` | `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SpatialAlignment.Horizontal` to align the children with. |

### spacedBy

Added in [1.0.0-beta02](https://developer.android.com/jetpack/androidx/releases/xr-compose#1.0.0-beta02)

```
fun spacedBy(space: Dp, spatialAlignment: SpatialAlignment.Horizontal): SpatialArrangement.Horizontal
```

Children are placed next to each other with fixed `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SpatialArrangement.Absolute#spacedBy(androidx.compose.ui.unit.Dp,androidx.xr.compose.subspace.layout.SpatialAlignment.Horizontal)` between them horizontally and align them according to the `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SpatialArrangement.Absolute#spacedBy(androidx.compose.ui.unit.Dp,androidx.xr.compose.subspace.layout.SpatialAlignment.Horizontal)` given. Unlike `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SpatialArrangement#spacedBy(androidx.compose.ui.unit.Dp)`, when layout direction is RTL, children will not be mirrored.

| Parameters |
|---|---|
| `space: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp` | fixed space `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp` to place between adjacent children. |
| `spatialAlignment: https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SpatialAlignment.Horizontal` | `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SpatialAlignment.Horizontal` to align the children with. |

## Public properties

### Center

Added in [1.0.0-beta02](https://developer.android.com/jetpack/androidx/releases/xr-compose#1.0.0-beta02)

```
val Center: SpatialArrangement.Horizontal
```

All children should be arranged at the center of the `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/SpatialRow.composable#SpatialRow(androidx.xr.compose.subspace.layout.SubspaceModifier,androidx.xr.compose.subspace.layout.SpatialAlignment.Vertical,androidx.xr.compose.subspace.layout.SpatialAlignment.Depth,androidx.xr.compose.subspace.layout.SpatialArrangement.Horizontal,kotlin.Function1)`. Unlike `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SpatialArrangement#Center()`, when layout direction is RTL, children will not be mirrored. Visually: ##123##

### Left

Added in [1.0.0-beta02](https://developer.android.com/jetpack/androidx/releases/xr-compose#1.0.0-beta02)

```
val Left: SpatialArrangement.Horizontal
```

All children should be arranged at the left of the `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/SpatialRow.composable#SpatialRow(androidx.xr.compose.subspace.layout.SubspaceModifier,androidx.xr.compose.subspace.layout.SpatialAlignment.Vertical,androidx.xr.compose.subspace.layout.SpatialAlignment.Depth,androidx.xr.compose.subspace.layout.SpatialArrangement.Horizontal,kotlin.Function1)`. Unlike `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SpatialArrangement#Start()`, when layout direction is RTL, children will not be mirrored. Visually: 123####

### Right

Added in [1.0.0-beta02](https://developer.android.com/jetpack/androidx/releases/xr-compose#1.0.0-beta02)

```
val Right: SpatialArrangement.Horizontal
```

All children should be arranged at the right of the `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/SpatialRow.composable#SpatialRow(androidx.xr.compose.subspace.layout.SubspaceModifier,androidx.xr.compose.subspace.layout.SpatialAlignment.Vertical,androidx.xr.compose.subspace.layout.SpatialAlignment.Depth,androidx.xr.compose.subspace.layout.SpatialArrangement.Horizontal,kotlin.Function1)`. Unlike `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SpatialArrangement#End()`, when layout direction is RTL, children will not be mirrored. Visually: ####123

### SpaceAround

Added in [1.0.0-beta02](https://developer.android.com/jetpack/androidx/releases/xr-compose#1.0.0-beta02)

```
val SpaceAround: SpatialArrangement.Horizontal
```

There should be equal space around each child. Unlike `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SpatialArrangement#SpaceAround()`, when layout direction is RTL, children will not be mirrored. Visually: #1##2##3##4#

### SpaceBetween

Added in [1.0.0-beta02](https://developer.android.com/jetpack/androidx/releases/xr-compose#1.0.0-beta02)

```
val SpaceBetween: SpatialArrangement.Horizontal
```

There should be equal space between the children and no space before the first child or after the last child. Unlike `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SpatialArrangement#SpaceBetween()`, when layout direction is RTL, children will not be mirrored. Visually: 1##2##3

### SpaceEvenly

Added in [1.0.0-beta02](https://developer.android.com/jetpack/androidx/releases/xr-compose#1.0.0-beta02)

```
val SpaceEvenly: SpatialArrangement.Horizontal
```

There should be equal space between the children and before the first child and after the last child. Unlike `https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SpatialArrangement#SpaceEvenly()`, when layout direction is RTL, children will not be mirrored. Visually: #1#2#3#