Google is committed to advancing racial equity for Black communities. See how.

Horizontal

interface Horizontal
androidx.compose.foundation.layout.Arrangement.Horizontal

Used to specify the horizontal arrangement of the layout's children in a Row.

Summary

Public methods
abstract Unit
arrange(totalSize: Int, size: List<Int>, layoutDirection: LayoutDirection, density: Density, outPosition: MutableList<Int>)

Horizontally places the layout children inside the Row.

open List<Int>
arrange(totalSize: Int, size: List<Int>, layoutDirection: LayoutDirection)

Properties
open Dp

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

Public methods

arrange

abstract fun arrange(
    totalSize: Int,
    size: List<Int>,
    layoutDirection: LayoutDirection,
    density: Density,
    outPosition: MutableList<Int>
): Unit

Horizontally places the layout children inside the Row.

Parameters
totalSize: Int Available space that can be occupied by the children.
size: List<Int> A list 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: MutableList<Int> A preallocated list that should return the calculated positions.

arrange

open fun arrange(
    totalSize: Int,
    size: List<Int>,
    layoutDirection: LayoutDirection
): List<Int>

Deprecated.

Properties

spacing

open val spacing: Dp

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