https://kotlinlang.org logo
Title
k

Kareem Waleed

03/22/2022, 9:03 AM
Is there a way to inspect the elements on the screen (metadata, positions, etc ...) while using compose ? In the views system this was done by recursing on the children of the activity's
DecorView
, but now using compose there's only one view added to the activity's
DecorView
which is a
ComposeView
that contains no details about the composables dawn inside. Any ideas ?
Also, is there a way to observe the changes in the composition tree ?
a

Albert Chang

03/22/2022, 9:23 AM
If you want that for debug purpose, check this.
🙏🏼 1
a

Adam Powell

03/22/2022, 2:54 PM
Do you want this for debugging or something else?
k

Kareem Waleed

03/22/2022, 3:15 PM
Actually I'm seeking to use it in production for some analytic tool am working on
d

divid3d

03/23/2022, 11:05 PM
Layout Inspector in Android Studio maybe?
i

ildar.i [Android]

03/24/2022, 9:29 AM