# Arrangement.Absolute

# Arrangement.Absolute

Artifact:[androidx.compose.foundation:foundation-layout](https://developer.android.com/jetpack/androidx/releases/compose-foundation)  
[View Source](https://cs.android.com/search?q=file:androidx/compose/foundation/layout/Arrangement.kt+class:androidx.compose.foundation.layout.Arrangement.Absolute)  
Added in[1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.0.0)
Common/AllAndroid/JVM
  - Cmn  

  ```
  object Arrangement.Absolute
  ```

*** ** * ** ***

## Summary

|                                                                  ### Public functions                                                                  |
|--------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----|
| [Arrangement.Horizontal](https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/Arrangement.Horizontal)                     | [aligned](https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/Arrangement.Absolute#aligned(androidx.compose.ui.Alignment.Horizontal))`(alignment: `[Alignment.Horizontal](https://developer.android.com/reference/kotlin/androidx/compose/ui/Alignment.Horizontal)`)` Place children horizontally one next to the other and align the obtained group according to an[alignment](https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/Arrangement.Absolute#aligned(androidx.compose.ui.Alignment.Horizontal)).                                                                                                                                               | Cmn |
| [Arrangement.HorizontalOrVertical](https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/Arrangement.HorizontalOrVertical) | [spacedBy](https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/Arrangement.Absolute#spacedBy(androidx.compose.ui.unit.Dp))`(space: `[Dp](https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp)`)` Place children such that each two adjacent ones are spaced by a fixed[space](https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/Arrangement.Absolute#spacedBy(androidx.compose.ui.unit.Dp))distance across the main axis.                                                                                                                                                                                                         | Cmn |
| [Arrangement.Horizontal](https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/Arrangement.Horizontal)                     | [spacedBy](https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/Arrangement.Absolute#spacedBy(androidx.compose.ui.unit.Dp,androidx.compose.ui.Alignment.Horizontal))`(space: `[Dp](https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp)`, alignment: `[Alignment.Horizontal](https://developer.android.com/reference/kotlin/androidx/compose/ui/Alignment.Horizontal)`)` Place children horizontally such that each two adjacent ones are spaced by a fixed[space](https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/Arrangement.Absolute#spacedBy(androidx.compose.ui.unit.Dp,androidx.compose.ui.Alignment.Horizontal))distance. | Cmn |
| [Arrangement.Vertical](https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/Arrangement.Vertical)                         | [spacedBy](https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/Arrangement.Absolute#spacedBy(androidx.compose.ui.unit.Dp,androidx.compose.ui.Alignment.Vertical))`(space: `[Dp](https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp)`, alignment: `[Alignment.Vertical](https://developer.android.com/reference/kotlin/androidx/compose/ui/Alignment.Vertical)`)` Place children vertically such that each two adjacent ones are spaced by a fixed[space](https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/Arrangement.Absolute#spacedBy(androidx.compose.ui.unit.Dp,androidx.compose.ui.Alignment.Vertical))distance.           | Cmn |

|                                                       ### Public properties                                                        |
|------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----|
| [Arrangement.Horizontal](https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/Arrangement.Horizontal) | [Center](https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/Arrangement.Absolute#Center()) Place children such that they are as close as possible to the middle of the[Row](https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/package-summary#Row(androidx.compose.ui.Modifier,androidx.compose.foundation.layout.Arrangement.Horizontal,androidx.compose.ui.Alignment.Vertical,kotlin.Function1)).                | Cmn |
| [Arrangement.Horizontal](https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/Arrangement.Horizontal) | [Left](https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/Arrangement.Absolute#Left()) Place children horizontally such that they are as close as possible to the left edge of the[Row](https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/package-summary#Row(androidx.compose.ui.Modifier,androidx.compose.foundation.layout.Arrangement.Horizontal,androidx.compose.ui.Alignment.Vertical,kotlin.Function1)).    | Cmn |
| [Arrangement.Horizontal](https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/Arrangement.Horizontal) | [Right](https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/Arrangement.Absolute#Right()) Place children horizontally such that they are as close as possible to the right edge of the[Row](https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/package-summary#Row(androidx.compose.ui.Modifier,androidx.compose.foundation.layout.Arrangement.Horizontal,androidx.compose.ui.Alignment.Vertical,kotlin.Function1)). | Cmn |
| [Arrangement.Horizontal](https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/Arrangement.Horizontal) | [SpaceAround](https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/Arrangement.Absolute#SpaceAround()) Place 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.                                                                                                                         | Cmn |
| [Arrangement.Horizontal](https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/Arrangement.Horizontal) | [SpaceBetween](https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/Arrangement.Absolute#SpaceBetween()) Place children such that they are spaced evenly across the main axis, without free space before the first child or after the last child.                                                                                                                                                                                                    | Cmn |
| [Arrangement.Horizontal](https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/Arrangement.Horizontal) | [SpaceEvenly](https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/Arrangement.Absolute#SpaceEvenly()) Place children such that they are spaced evenly across the main axis, including free space before the first child and after the last child.                                                                                                                                                                                                   | Cmn |

## Public functions

### aligned

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

```
fun aligned(alignment: Alignment.Horizontal): Arrangement.Horizontal
```

Place children horizontally one next to the other and align the obtained group according to an[alignment](https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/Arrangement.Absolute#aligned(androidx.compose.ui.Alignment.Horizontal)).

Unlike[Arrangement.aligned](https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/Arrangement#aligned(androidx.compose.ui.Alignment.Horizontal)), when the layout direction is RTL, the children will not be mirrored and as such children will appear in the order they are composed inside the[Row](https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/package-summary#Row(androidx.compose.ui.Modifier,androidx.compose.foundation.layout.Arrangement.Horizontal,androidx.compose.ui.Alignment.Vertical,kotlin.Function1)).  

|                                                          Parameters                                                          |
|------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------|
| `alignment: `[Alignment.Horizontal](https://developer.android.com/reference/kotlin/androidx/compose/ui/Alignment.Horizontal) | The alignment of the children inside the parent. |

### spacedBy

Cmn  
Added in[1.10.0](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.10.0)  

```
fun spacedBy(space: Dp): Arrangement.HorizontalOrVertical
```

Place children such that each two adjacent ones are spaced by a fixed[space](https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/Arrangement.Absolute#spacedBy(androidx.compose.ui.unit.Dp))distance across the main axis. The spacing will be subtracted from the available space that the children can occupy.

Unlike[Arrangement.spacedBy](https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/Arrangement#spacedBy(androidx.compose.ui.unit.Dp)), when the layout direction is RTL, the children will not be mirrored and as such children will appear in the order they are composed inside the[Row](https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/package-summary#Row(androidx.compose.ui.Modifier,androidx.compose.foundation.layout.Arrangement.Horizontal,androidx.compose.ui.Alignment.Vertical,kotlin.Function1)).  

|                                        Parameters                                         |
|-------------------------------------------------------------------------------------------|--------------------------------------|
| `space: `[Dp](https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp) | The space between adjacent children. |

### spacedBy

Cmn  
Added in[1.10.0](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.10.0)  

```
fun spacedBy(space: Dp, alignment: Alignment.Horizontal): Arrangement.Horizontal
```

Place children horizontally such that each two adjacent ones are spaced by a fixed[space](https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/Arrangement.Absolute#spacedBy(androidx.compose.ui.unit.Dp,androidx.compose.ui.Alignment.Horizontal))distance. The spacing will be subtracted from the available width that the children can occupy. An[alignment](https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/Arrangement.Absolute#spacedBy(androidx.compose.ui.unit.Dp,androidx.compose.ui.Alignment.Horizontal))can be specified to align the spaced children horizontally inside the parent, in case there is empty width remaining.

Unlike[Arrangement.spacedBy](https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/Arrangement#spacedBy(androidx.compose.ui.unit.Dp)), when the layout direction is RTL, the children will not be mirrored and as such children will appear in the order they are composed inside the[Row](https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/package-summary#Row(androidx.compose.ui.Modifier,androidx.compose.foundation.layout.Arrangement.Horizontal,androidx.compose.ui.Alignment.Vertical,kotlin.Function1)).  

|                                                          Parameters                                                          |
|------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------|
| `space: `[Dp](https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp)                                    | The space between adjacent children.                    |
| `alignment: `[Alignment.Horizontal](https://developer.android.com/reference/kotlin/androidx/compose/ui/Alignment.Horizontal) | The alignment of the spaced children inside the parent. |

### spacedBy

Cmn  
Added in[1.10.0](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.10.0)  

```
fun spacedBy(space: Dp, alignment: Alignment.Vertical): Arrangement.Vertical
```

Place children vertically such that each two adjacent ones are spaced by a fixed[space](https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/Arrangement.Absolute#spacedBy(androidx.compose.ui.unit.Dp,androidx.compose.ui.Alignment.Vertical))distance. The spacing will be subtracted from the available height that the children can occupy. An[alignment](https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/Arrangement.Absolute#spacedBy(androidx.compose.ui.unit.Dp,androidx.compose.ui.Alignment.Vertical))can be specified to align the spaced children vertically inside the parent, in case there is empty height remaining.

Unlike[Arrangement.spacedBy](https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/Arrangement#spacedBy(androidx.compose.ui.unit.Dp)), when the layout direction is RTL, the children will not be mirrored and as such children will appear in the order they are composed inside the[Row](https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/package-summary#Row(androidx.compose.ui.Modifier,androidx.compose.foundation.layout.Arrangement.Horizontal,androidx.compose.ui.Alignment.Vertical,kotlin.Function1)).  

|                                                        Parameters                                                        |
|--------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------|
| `space: `[Dp](https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp)                                | The space between adjacent children.                    |
| `alignment: `[Alignment.Vertical](https://developer.android.com/reference/kotlin/androidx/compose/ui/Alignment.Vertical) | The alignment of the spaced children inside the parent. |

## Public properties

### Center

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

```
val Center: Arrangement.Horizontal
```

Place children such that they are as close as possible to the middle of the[Row](https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/package-summary#Row(androidx.compose.ui.Modifier,androidx.compose.foundation.layout.Arrangement.Horizontal,androidx.compose.ui.Alignment.Vertical,kotlin.Function1)).

Unlike[Arrangement.Center](https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/Arrangement#Center()), when the layout direction is RTL, the children will not be mirrored and as such children will appear in the order they are composed inside the[Row](https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/package-summary#Row(androidx.compose.ui.Modifier,androidx.compose.foundation.layout.Arrangement.Horizontal,androidx.compose.ui.Alignment.Vertical,kotlin.Function1)).

Visually: ##123##  

### Left

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

```
val Left: Arrangement.Horizontal
```

Place children horizontally such that they are as close as possible to the left edge of the[Row](https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/package-summary#Row(androidx.compose.ui.Modifier,androidx.compose.foundation.layout.Arrangement.Horizontal,androidx.compose.ui.Alignment.Vertical,kotlin.Function1)).

Unlike[Arrangement.Start](https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/Arrangement#Start()), when the layout direction is RTL, the children will not be mirrored and as such children will appear in the order they are composed inside the[Row](https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/package-summary#Row(androidx.compose.ui.Modifier,androidx.compose.foundation.layout.Arrangement.Horizontal,androidx.compose.ui.Alignment.Vertical,kotlin.Function1)).

Visually: 123####  

### Right

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

```
val Right: Arrangement.Horizontal
```

Place children horizontally such that they are as close as possible to the right edge of the[Row](https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/package-summary#Row(androidx.compose.ui.Modifier,androidx.compose.foundation.layout.Arrangement.Horizontal,androidx.compose.ui.Alignment.Vertical,kotlin.Function1)).

Unlike[Arrangement.End](https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/Arrangement#End()), when the layout direction is RTL, the children will not be mirrored and as such children will appear in the order they are composed inside the[Row](https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/package-summary#Row(androidx.compose.ui.Modifier,androidx.compose.foundation.layout.Arrangement.Horizontal,androidx.compose.ui.Alignment.Vertical,kotlin.Function1)).

Visually: ####123  

### SpaceAround

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

```
val SpaceAround: Arrangement.Horizontal
```

Place 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.

Unlike[Arrangement.SpaceAround](https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/Arrangement#SpaceAround()), when the layout direction is RTL, the children will not be mirrored and as such children will appear in the order they are composed inside the[Row](https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/package-summary#Row(androidx.compose.ui.Modifier,androidx.compose.foundation.layout.Arrangement.Horizontal,androidx.compose.ui.Alignment.Vertical,kotlin.Function1)).

Visually: #1##2##3##4#  

### SpaceBetween

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

```
val SpaceBetween: Arrangement.Horizontal
```

Place children such that they are spaced evenly across the main axis, without free space before the first child or after the last child.

Unlike[Arrangement.SpaceBetween](https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/Arrangement#SpaceBetween()), when the layout direction is RTL, the children will not be mirrored and as such children will appear in the order they are composed inside the[Row](https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/package-summary#Row(androidx.compose.ui.Modifier,androidx.compose.foundation.layout.Arrangement.Horizontal,androidx.compose.ui.Alignment.Vertical,kotlin.Function1)).

Visually: 1##2##3  

### SpaceEvenly

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

```
val SpaceEvenly: Arrangement.Horizontal
```

Place children such that they are spaced evenly across the main axis, including free space before the first child and after the last child.

Unlike[Arrangement.SpaceEvenly](https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/Arrangement#SpaceEvenly()), when the layout direction is RTL, the children will not be mirrored and as such children will appear in the order they are composed inside the[Row](https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/package-summary#Row(androidx.compose.ui.Modifier,androidx.compose.foundation.layout.Arrangement.Horizontal,androidx.compose.ui.Alignment.Vertical,kotlin.Function1)).

Visually: #1#2#3#