Android 12 Developer Preview is here! Try it out, and give us your feedback!

ParentDataModifier

interface ParentDataModifier : Modifier.Element
androidx.compose.ui.layout.ParentDataModifier

A Modifier that provides data to the parent Layout. This can be read from within the the Layout during measurement and positioning, via IntrinsicMeasurable.parentData. Th parent data is commonly used to inform the parent how the child Layout should be measured and positioned.

Summary

Public methods
abstract Any?

Provides a parentData, given the parentData already provided through the modifier's chain.

Inherited functions
Inherited extension functions
From androidx.compose.foundation.layout
Modifier
Modifier.absoluteOffset(x: Dp = 0.dp, y: Dp = 0.dp)

Offset the content by (x dp, y dp).

Modifier

Offset the content by offset px.

Modifier
Modifier.absolutePadding(left: Dp = 0.dp, top: Dp = 0.dp, right: Dp = 0.dp, bottom: Dp = 0.dp)

Apply additional space along each edge of the content in Dp: left, top, right and bottom.