I have an existing app, which is all XML layout. W...
# compose
b
I have an existing app, which is all XML layout. We have a new upgrade in the pipeline, whereby we'll be shifting from a portrait only, to landscape on tablet devices only. Seems like a great opportunity to implement Compose. Can the existing Activity still be used, even thou some screen will now be Compose and not XML generated? What is the best practice to "phase-in" Compose?
r
You can add Compose components in your existing XML layout. Sounds like that will likely be the easiest thing to try in your case
a
Yes you can use the ComposeVIew XML based layout to add compose views to your XML layout and call setContent on them to start writing your composables