December 23, 2024
Serve an XML or Compose UI at RUNTIME

Serve an XML or Compose UI at RUNTIME

Video by CodingWithMitch via YouTube
Source
Serve an XML or Compose UI at RUNTIME

The BEST android courses in the world: https://codingwithmitch.com/

I made a simple app that serves either a (1) compose UI or (2) XML UI. Which UI is served is configurable at runtime. So basically I built two almost identical UIs, one in compose and one in XML. And I’m retrieving a flag from Firebase remote config. Its just a boolean. If true the app will serve the compose UI. If false it will serve the XML UI.

Code: https://github.com/mitchtabian/ABTestLayouts

Social:

https://www.instagram.com/codingwithmitch
.
.

Go to Source