HorizontalOrVertical

An arrangement that reads the same on either axis, so it serves a Row and a Column alike.

Properties

Link copied to clipboard
open override 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.

abstract fun arrange(totalSize: Int, sizes: IntArray, outPositions: IntArray)

Writes each child's offset from the top of totalSize into outPositions, for children whose heights are sizes in declaration order. outPositions is as long as sizes.