Class UIStackViewDistribution


  • public final class UIStackViewDistribution
    extends java.lang.Object
    Distribution—the layout along the stacking axis. 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.
    • Field Summary

      Fields 
      Modifier and Type Field 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.
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • Fill

        public static final 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.
        See Also:
        Constant Field Values
      • FillEqually

        public static final long FillEqually
        Items are all the same size. When space allows, this will be the size of the item with the largest intrinsicContentSize (along the axis of the stack). Overflow or underflow adjustments are distributed equally among the items.
        See Also:
        Constant Field Values
      • FillProportionally

        public static final long FillProportionally
        Overflow or underflow adjustments are distributed among the items proportional to their intrinsicContentSizes.
        See Also:
        Constant Field Values
      • EqualSpacing

        public static final long EqualSpacing
        Additional underflow spacing is divided equally in the spaces between the items. Overflow squeezing is controlled by compressionResistance priorities followed by arrangement order.
        See Also:
        Constant Field Values
      • EqualCentering

        public static final 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. Additional underflow spacing is divided equally in the spacing. Overflow squeezing is distributed first according to compressionResistance priorities of items, then according to subview order while maintaining the configured (edge-to-edge) spacing as a minimum.
        See Also:
        Constant Field Values