Can you tell if a given app's ui is in compose or ...
# compose
u
Can you tell if a given app's ui is in compose or views? (say Spotify new homescreen etc)
f
you can analyze the APK and see if it includes the compose runtime, but that only tells you it's included, not which screens use it
s
There is easier way. You can go to the developer options and enable "show layout bounds". The layout boundaries are drawn slightly differently for Compose widgets compared to regular View widgets.
3
🙌 1
Layout bounds for a regular View, look at the corners.
Here is Compose widget.
Additionally, the layout boundaries displayed for Compose do not indicate margins (shown by a purple tint) like they do for regular View widgets.
💡 4
u
sweet!
z
You could probably get hints from the a11y tree too
Or just find a text field and see if it works 😭
😅 1
😂 8
🤗 1
u
😀😀
btw im lookind arouns with the Show bounds and almost nothing is compose - not spotify, slack, twitter, youtube, reddit, uber, bolt, netflix - only thing im seeing is Play store and Chatgpt
🥲 1
👀 1
c
That doesn’t seem surprising since all of those apps predate Compose
☝️ 1
☝🏻 1
Adopting a new dependency + programming paradigm in a big org is a tricky proposition, there’s no apparent benefit to the user or business
2