# compose

Zach Klippenstein (he/him) [MOD]

03/02/2021, 12:04 AM
We just released an update to Radiography (v2.3.0)– most notably, it now supports Compose Beta 1! Radiography can be helpful when you need to see a readable printout of your UI but don’t have access to something like Android Studio’s Layout Inspector or other interactive tools.
👍 16


03/02/2021, 12:54 PM
Nice tools. I hope that in the future it become an Inspector like Flutter have:

Zach Klippenstein (he/him) [MOD]

03/02/2021, 4:14 PM
I think that would probably be excessive scope creep for this library. If you need an interactive tool, there’s already layout inspector in AS, Facebook has a great pluggable platform for interactive app monitoring that I imagine someone could write a plugin for to parse composables, and there’s probably other tools out there as well. Radiography’s main use cases are things like dumping your ui at the end of failed instrumentation tests, bug reports, etc.
That said, there’s probably a shared need for something to make analyzing with the slot table a little more straightforward (eg aggregating callgroups and nodegroups, detecting SubcomposeLayouts and AndroidViews, etc). Something like that could probably be extracted from radiography, although it would be better for google to provide this themselves 😉
You’d probably need a lot more detailed parsing for something interactive though - I imagine you’d want to see function parameters, individual remember calls, all that good stuff. You can get all that from the tooling apis but most of what radiography does is actually hide that for simplification.
👍 1