# Arrangement.Vertical

# Arrangement.Vertical

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.Vertical)  
Added in[1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.0.0)
Common/AllAndroid/JVM
  - Cmn  

  ```
  interface Arrangement.Vertical
```  
Known direct subclasses  
[Arrangement.HorizontalOrVertical](https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/Arrangement.HorizontalOrVertical)  

|--------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Arrangement.HorizontalOrVertical](https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/Arrangement.HorizontalOrVertical) | Used to specify the horizontal arrangement of the layout's children in horizontal layouts like[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)), or the vertical arrangement of the layout's children in vertical layouts like[Column](https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/package-summary#Column(androidx.compose.ui.Modifier,androidx.compose.foundation.layout.Arrangement.Vertical,androidx.compose.ui.Alignment.Horizontal,kotlin.Function1)). |

*** ** * ** ***

Used to specify the vertical arrangement of the layout's children in layouts like[Column](https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/package-summary#Column(androidx.compose.ui.Modifier,androidx.compose.foundation.layout.Arrangement.Vertical,androidx.compose.ui.Alignment.Horizontal,kotlin.Function1)).

## Summary

|                             ### Public functions                              |
|-------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----|
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html) | [Density](https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Density)`.`[arrange](https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/Arrangement.Vertical#(androidx.compose.ui.unit.Density).arrange(kotlin.Int,kotlin.IntArray,kotlin.IntArray))`(totalSize: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`, sizes: `[IntArray](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int-array/index.html)`, outPositions: `[IntArray](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int-array/index.html)`)` Vertically places the layout children. | Cmn |

|                                  ### Public properties                                  |
|-----------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----|
| `open `[Dp](https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp) | [spacing](https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/Arrangement.Vertical#spacing()) Spacing that should be added between any two adjacent layout children. | Cmn |

## Public functions

### arrange

Cmn  
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+function:arrange)  
Added in[1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.0.0)  

```
fun Density.arrange(totalSize: Int, sizes: IntArray, outPositions: IntArray): Unit
```

Vertically places the layout children.  

|                                               Parameters                                               |
|--------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `totalSize: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)               | Available space that can be occupied by the children, in pixels.                                                                                                                                                                                                                                   |
| `sizes: `[IntArray](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int-array/index.html)        | An array of sizes of all children, in pixels.                                                                                                                                                                                                                                                      |
| `outPositions: `[IntArray](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int-array/index.html) | An array of the size of[sizes](https://developer.android.com/reference/kotlin/androidx/compose/foundation/layout/Arrangement.Vertical#(androidx.compose.ui.unit.Density).arrange(kotlin.Int,kotlin.IntArray,kotlin.IntArray))that returns the calculated positions relative to the top, in pixels. |

## Public properties

### spacing

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

```
open val spacing: Dp
```

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