Random thought, it would be useful to have a XML -...
# compose
s
Random thought, it would be useful to have a XML -> Compose conversion tool in the IDE
a
not sure what this is, but someone posted the link earlier: https://kotlinlang.slack.com/archives/CJLTWPH7S/p1630563714108000
a
Actually the plugin does exactly that
a
The linked plugin is very neat and good work, but translating the layout is maybe 10-15% of the work of migrating UI, and the layout behavior of stock compose UI layout containers is different from android.widget ViewGroup behavior by design, so the fidelity isn't going to be there for more complex scenarios. The bulk of this kind of work is migrating any imperative, possibly lifecycle-tied binding code that doesn't live in xml.
👍🏼 1
👍 9
s
Yeah that totally makes sense ^^ Will have to check out the linked plugin, looks interesting. ah, looks like it's 1 year no commit 🤷‍♂️