r/learnprogramming • u/dark_devil307 • Oct 26 '26
Topic Jetpack Compose vs XML for a beginner in 2026: what would you pick and why?
I just started learning Kotlin for Android and I’m confused about where to begin with UI. Half the tutorials I find use XML but everyone online says Compose is the future. If you were starting from zero today which would you learn first? Is XML still worth the time or is it mostly just old projects at this point?
1
Upvotes
1
u/Minecraftian14 Oct 26 '26
Compose!
XML is old.
1
u/EszterSantos72 Oct 26 '26
If you're starting in 2026, just go straight to Jetpack Compose since Google has made it the default for new projects since Android Studio Electric Eel, and most new libraries drop XML samples after 2023. XML is mainly for legacy apps now.