public final class UIStackViewDistribution
extends java.lang.Object
All UIStackViewDistribution enum values fit first and last arranged subviews tightly to the container, and except for UIStackViewDistributionFillEqually, fit all items to intrinsicContentSize when possible.
| Modifier and Type | Field and Description |
|---|---|
static long |
EqualCentering
Equal center-to-center spacing of the items is maintained as much
as possible while still maintaining a minimum edge-to-edge spacing within the
allowed area.
|
static long |
EqualSpacing
Additional underflow spacing is divided equally in the spaces between the items.
|
static long |
Fill
When items do not fit (overflow) or fill (underflow) the space available
adjustments occur according to compressionResistance or hugging
priorities of items, or when that is ambiguous, according to arrangement
order.
|
static long |
FillEqually
Items are all the same size.
|
static long |
FillProportionally
Overflow or underflow adjustments are distributed among the items proportional
to their intrinsicContentSizes.
|
public static final long Fill
public static final long FillEqually
public static final long FillProportionally
public static final long EqualSpacing
public static final long EqualCentering