{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

Arrangement.HorizontalOrVertical

public interface Arrangement.HorizontalOrVertical extends Arrangement.Horizontal, Arrangement.Vertical


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

Summary

Public methods

default @NonNull Dp

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

Inherited methods

From androidx.compose.foundation.layout.Arrangement.Horizontal
abstract void
orgKt.arrange(
    @NonNull Density receiver,
    int totalSize,
    @NonNull int[] sizes,
    @NonNull LayoutDirection layoutDirection,
    @NonNull int[] outPositions
)

Horizontally places the layout children.

From androidx.compose.foundation.layout.Arrangement.Vertical
abstract void
orgKt.arrange(
    @NonNull Density receiver,
    int totalSize,
    @NonNull int[] sizes,
    @NonNull int[] outPositions
)

Vertically places the layout children.

Public methods

getSpacing

default @NonNull Dp getSpacing()

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