> Documentation index: https://developer.android.com/reference/llms.txt

# SpatialArrangement.AxisIndependent

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


```
interface SpatialArrangement.AxisIndependent : SpatialArrangement.Horizontal, SpatialArrangement.Vertical
```

<br />

*** ** * ** ***

Used to specify the horizontal arrangement of the layout's children in horizontal layouts like `androidx.xr.compose.subspace.SpatialRow`, or the vertical arrangement of the layout's children in vertical layouts like `androidx.xr.compose.subspace.SpatialColumn`.

## Summary

| ### Public properties |
|---|---|
| `open Dp` | `spacing` Spacing that should be added between any two adjacent layout children. |

### Inherited functions

From [androidx.xr.compose.subspace.layout.SpatialArrangement.Horizontal](https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SpatialArrangement.Horizontal.md.txt) `Unit` `Density.arrange(
totalSize: Int,
sizes: IntArray,
layoutDirection: LayoutDirection,
outPositions: IntArray
)`

Horizontally places the layout children.
From [androidx.xr.compose.subspace.layout.SpatialArrangement.Vertical](https://developer.android.com/reference/kotlin/androidx/xr/compose/subspace/layout/SpatialArrangement.Vertical.md.txt) `Unit` `Density.arrange(totalSize: Int, sizes: IntArray, outPositions: IntArray)`

Vertically places the layout children.

## Public properties

### spacing

```
open val spacing: Dp
```

Spacing that should be added between any two adjacent layout children.