androidx.compose.foundation.layout

Horizontal

Interface · from org.jetbrains.compose.foundation:foundation-layout:1.12.2

No hand-written docs yet.

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

interface Horizontal

Kinds of Horizontal

Anywhere a Horizontal is expected, you can pass any of these.

How to get one

Ready-made values and functions that return it

Or create one of the kinds listed above.

Used by

Parameters that take a Horizontal.

Properties

spacing

val spacing: Dp

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

Functions

arrange

fun Density.arrange(
    totalSize: Int,
    sizes: IntArray,
    layoutDirection: LayoutDirection,
    outPositions: IntArray,
)

Horizontally places the layout children.

Library docs

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