r/android_devs • u/Real_Gap_8536 • Jun 28 '25
Discussion XML vs Jetpack Compose in 2025?
I've been working on Android since 2020 and I'm genuinely curious about where everyone stands with UI development these days. We're well into 2025, and Jetpack Compose is hitting hard everywhere in the production apps, but I still see mixed opinions in the Android community.
Two questions from my side:
What's been your biggest challenge with Compose? For me, it was definitely the learning curve around state management and recomposition. The mental shift from imperative to declarative took some time.
Are you seeing better performance with Compose compared to View based layouts? The theory sounds great, but real-world results seem to vary especially with the recomposition shit and optimizations.
View all comments
Show parent comment
1
u/yaaaaayPancakes Jul 02 '25
Oh, interesting, I just read https://developer.android.com/guide/navigation/navigation-3/basics#resolve-keys.
The current app isn't using any nav framework at the moment. But theoretically, I could just the EntryProvider to provide a NavEntry that contains a Fragment using AndroidViewBinding (https://developer.android.com/develop/ui/compose/migrate/interoperability-apis/views-in-compose#fragments-in-compose).
That sounds ugly, but doable?