-
absoluteOffset
Offset the content by (x dp, y dp).
-
absolutePadding
Apply additional space along each edge of the content in Dp: left, top, right and bottom.
-
aspectRatio
Attempts to size the content to match a specified aspect ratio by trying to match one of the incoming constraints in the following order: [Constraints.
-
captionBarPadding
Adds padding to accommodate the caption bar[WindowInsets.
-
consumeWindowInsets
Consume insets that haven't been consumed yet by other insets Modifiers similar to windowInsetsPadding without adding any padding.
-
defaultMinSize
Constrain the size of the wrapped layout only when it would be otherwise unconstrained: the minWidth and minHeight constraints are only applied when the incoming corresponding con…
-
displayCutoutPadding
Adds padding to accommodate the display cutout[WindowInsets.
-
fillMaxHeight
Have the content fill (possibly only partially) the [Constraints.
-
fillMaxSize
Have the content fill (possibly only partially) the [Constraints.
-
fillMaxWidth
Have the content fill (possibly only partially) the [Constraints.
-
fitInside
Fits the contents within rulers.
-
fitOutside
If one of the Rulers in rulers has a value within the bounds of the Layout, this sizes the content to that Ruler and the edge.
-
height
Declare the preferred height of the content to be the same as the min or max intrinsic height of the content.
-
heightIn
Constrain the height of the content to be between mindp and maxdp as permitted by the incoming measurement Constraints.
-
imeNestedScroll
Controls the soft keyboard as a nested scrolling on Android R[Build.
-
imePadding
Adds padding to accommodate the ime[WindowInsets.
-
mandatorySystemGesturesPadding
Adds padding to accommodate the mandatory system gestures[WindowInsets.
-
navigationBarsPadding
Adds padding to accommodate the navigation bars[WindowInsets.
-
offset
Offset the content by (x dp, y dp).
-
onConsumedWindowInsetsChanged
Calls block with the WindowInsets that have been consumed, either by consumeWindowInsets or one of the padding Modifiers, such as imePadding.
-
padding
Apply additional space along each edge of the content in Dp: start, top, end and bottom.
-
paddingFrom
A Modifier that can add padding to position the content according to specified distances from its bounds to an alignment lineAlignmentLine.
-
paddingFromBaseline
A Modifier that positions the content in a layout such that the distance from the top of the layout to the baseline of the first line of text in the contentFirstBaseline is top, a…
-
recalculateWindowInsets
This recalculates the WindowInsets based on the size and position.
-
requiredHeight
Declare the height of the content to be exactly the same as the min or max intrinsic height of the content.
-
requiredHeightIn
Constrain the height of the content to be between mindp and maxdp.
-
requiredSize
Declare the size of the content to be exactly sizedp width and height.
-
requiredSizeIn
Constrain the width of the content to be between minWidthdp and maxWidthdp, and the height of the content to be between minHeightdp and maxHeightdp.
-
requiredWidth
Declare the width of the content to be exactly the same as the min or max intrinsic width of the content.
-
requiredWidthIn
Constrain the width of the content to be between mindp and maxdp.
-
safeContentPadding
Adds padding to accommodate the safe content[WindowInsets.
-
safeDrawingPadding
Adds padding to accommodate the safe drawing[WindowInsets.
-
safeGesturesPadding
Adds padding to accommodate the safe gestures[WindowInsets.
-
size
Declare the preferred size of the content to be exactly sizedp square.
-
sizeIn
Constrain the width of the content to be between minWidthdp and maxWidthdp and the height of the content to be between minHeightdp and maxHeightdp as permitted by the incoming mea…
-
statusBarsPadding
Adds padding to accommodate the status bars[WindowInsets.
-
systemBarsPadding
Adds padding to accommodate the system bars[WindowInsets.
-
systemGesturesPadding
Adds padding to accommodate the system gestures[WindowInsets.
-
visible
A Modifier that controls the visibility of the Layout it is applied to.
-
waterfallPadding
Adds padding to accommodate the waterfall[WindowInsets.
-
width
Declare the preferred width of the content to be the same as the min or max intrinsic width of the content.
-
widthIn
Constrain the width of the content to be between mindp and maxdp as permitted by the incoming measurement Constraints.
-
windowInsetsBottomHeight
Sets the height to that of insets at the bottom[WindowInsets.
-
windowInsetsEndWidth
Sets the width to that of insets at the end[androidx.
-
windowInsetsPadding
Adds padding so that the content doesn't enter insets space.
-
windowInsetsStartWidth
Sets the width to that of insets at the start[androidx.
-
windowInsetsTopHeight
Sets the height to that of insets at the top[WindowInsets.
-
wrapContentHeight
Allow the content to measure at its desired height without regard for the incoming measurement minimum height constraint[Constraints.
-
wrapContentSize
Allow the content to measure at its desired size without regard for the incoming measurement minimum width[Constraints.
-
wrapContentWidth
Allow the content to measure at its desired width without regard for the incoming measurement minimum width constraint[Constraints.
Compose Foundation Layout
Jetpack Compose API reference for foundation-layout.