'What is the alternative of view.x and view.y in android jetpack compose...? [closed]
I wants to get coordinates of a view in jetpack compose like we get in android by using following code...i.e view.x and view.y that gives you x and y coordinates how we can achieve this in jetpack compose....?
Solution 1:[1]
You can use the Modifier's onGloballyPositioned method and retrieve its coordinates (from its parent or the root screen) from the layoutParameter passed down in the lambda
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Stephen Vinouze |
