Function

positionInParent

Returns the position of the top-left in the parent's content area or (0, 0) for the root.

positionInParent

Source set: Common
public fun LayoutCoordinates.positionInParent(): Offset

Returns the position of the top-left in the parent's content area or (0, 0) for the root.

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: