https://kotlinlang.org logo
#compose
Title
# compose
j

Jasmin Fajkic

07/16/2022, 3:20 PM
Is it possible with Jetpack compose when click on element to get it position relative to screen? I am coming from react native and there it is possible but can not find anything similar with Jetpack compose. I need when click on element to get it offset from bottom. Thx in advance 🙂
z

Zach Klippenstein (he/him) [MOD]

07/18/2022, 3:47 PM
Use
onPlaced
to store the
LayoutCoordinates
, then query that in your click handler.
6 Views