SpatialArrangement.AxisIndependent

interface SpatialArrangement.AxisIndependent : SpatialArrangement.Horizontal, SpatialArrangement.Vertical


Used to specify the horizontal arrangement of the layout's children in horizontal layouts like SpatialRow, or the vertical arrangement of the layout's children in vertical layouts like SpatialColumn.

Summary

Public properties

open Dp

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

Inherited functions

From androidx.xr.compose.subspace.layout.SpatialArrangement.Horizontal
Unit
Density.arrange(
    totalSize: Int,
    sizes: IntArray,
    layoutDirection: LayoutDirection,
    outPositions: IntArray
)

Horizontally places the layout children.

From androidx.xr.compose.subspace.layout.SpatialArrangement.Vertical
Unit
Density.arrange(totalSize: Int, sizes: IntArray, outPositions: IntArray)

Vertically places the layout children.

Public properties

spacing

open val spacingDp

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