-
public final class FoldAwareColumnKt
-
-
Method Summary
Modifier and Type Method Description final static UnitFoldAwareColumn(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. -
-
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 hasmodifier- an optional modifier for the layoutfoldPadding- the optional padding to add around a foldhorizontalAlignment- the horizontal alignment of the layout's children.
-
-
-
-