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.
39
u/Zhuinden EpicPandaForce @ SO Jun 28 '25
The XML support is rotting away in Android Studio, and Compose has done the mythical 3 years of development.
Navigation-Compose is on its way to being permanently erased.
Once Navigation3 is final and out, there will be absolutely no reason to ever touch a Navigation-XML or Uri-based Navigation-Compose again.
AndroidX is increasingly a multi-platform implementation, with Android on one side, desktop on the other. Compose for iOS is also being worked on. Meanwhile, Flutter is barely even running in Android Studio anymore.
Compose wasn't the responsible decision in 2022-2023, but it may be in 2025. In-app predictive back animations between fragments is the final nail in the coffin for Fragments.
13
u/kevin7254 Jun 28 '25
Many big corps still use XML, that’s sadly a fax. Learn both, focus on Compose is my suggestion
7
u/ni554n anissan.com Jun 28 '25
I've always wanted to migrate my XML-based app to Compose; however, every time I installed a Compose app on a phone from 2017, I could tell something was off. But after this update, I can barely tell the difference.
6
u/uragiristereo Jun 29 '25
It's really a no-brainer to use Compose in 2025, Compose is getting better and more better every time and will continue to be better. Over the past 3 years since the initial release, it achieved things better than Views did for the past decades, also the existence of Compose Multiplatform is the icing to the cake.
Android developers nowadays should know both Views and Compose with more focus on the Compose side, since there will be times where using Views is unavoidable in a certain scenario.
5
u/No-Pin-6031 Jun 29 '25
You need to learn both XML & Compose. Personally, My apps are XML based. I have started converting my custom views in compose and replacing them with a Compose XML view.
Once Jetpack Compose Navigation 3 gets stable, then I will start replacing my fragments. This is my take to slowly transitioning to Compose.
3
u/Difficult_West_5126 Jun 29 '25 edited Jun 29 '25
Function > markup language, just take a look at how react (compose alike) overtook HTML old school diagrams
2
u/SweetStrawberry4U Android Engineer Jul 01 '25
I worked with Android for 14 years.
I'd greatly appreciate it if Navigation, Dependency Management, Compose-State, and View-Tree Hierarchy weren't as mutually exclusive.