Package 

Class FoldAwareColumnKt

    • Method Summary

      Modifier and Type Method Description
      final static Unit FoldAwareColumn(List<DisplayFeature> displayFeatures, Modifier modifier, PaddingValues foldPadding, Alignment.Horizontal horizontalAlignment, Function1<FoldAwareColumnScope, Unit> content) A simplified version of Column that places children in a fold-aware manner.
      • Methods inherited from class java.lang.Object

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

      • FoldAwareColumn

        @Composable() final static Unit FoldAwareColumn(List<DisplayFeature> displayFeatures, Modifier modifier, PaddingValues foldPadding, Alignment.Horizontal horizontalAlignment, Function1<FoldAwareColumnScope, Unit> content)

        A simplified version of Column that places children in a fold-aware manner.

        The layout starts placing children from the top of the available space. If there is a horizontal separating fold present in the window, then the layout will check to see if any children overlap the fold. If a child would overlap the fold in its current position, then the layout will increase its y coordinate so that the child is now placed below the fold, and any subsequent children will also be placed below the fold.

        Parameters:
        displayFeatures - a list of display features the device currently has
        modifier - an optional modifier for the layout
        foldPadding - the optional padding to add around a fold
        horizontalAlignment - the horizontal alignment of the layout's children.