Horizontal
Kotlin
|Java
@Immutable interface Horizontal
androidx.compose.foundation.layout.Arrangement.Horizontal |
Used to specify the horizontal arrangement of the layout's children in layouts like Row.
Summary
Public methods | |
---|---|
abstract Unit |
arrange(totalSize: Int, size: IntArray, layoutDirection: LayoutDirection, density: Density, outPosition: IntArray) Horizontally places the layout children. |
Properties | |
---|---|
open Dp |
Spacing that should be added between any two adjacent layout children. |
Public methods
arrange
abstract fun arrange(
totalSize: Int,
size: IntArray,
layoutDirection: LayoutDirection,
density: Density,
outPosition: IntArray
): Unit
Horizontally places the layout children.
Parameters | |
---|---|
totalSize: Int | Available space that can be occupied by the children. |
size: IntArray | An array of sizes of all children. |
layoutDirection: LayoutDirection | A layout direction, left-to-right or right-to-left, of the parent layout that should be taken into account when determining positions of the children. |
density: Density | The current density. |
outPosition: IntArray | An array of the size of size that returns the calculated positions. |