Horizontal

@Stable
interface Horizontal

Places children along a horizontal axis, resolved against the container's ComponentOrientation.

Inheritors

Properties

Link copied to clipboard
open val spacing: Int

The gap held between two adjacent children, in pixels.

Functions

Link copied to clipboard
abstract fun arrange(totalSize: Int, sizes: IntArray, orientation: ComponentOrientation, outPositions: IntArray)

Writes each child's offset from the left of totalSize into outPositions, for children whose widths are sizes in declaration order, in a container laid out under orientation. outPositions is as long as sizes.