r/android_devs • u/AD-LB • Jan 22 '22
Discussion Question: With all the talks about Compose, will the standard XML&View be deprecated and not updated on support libraries?
I have a feeling that Google won't update and add features to the standard Views system, not on Android OS and not on its support libraries.
Is this true, or they plan on supporting both Compose and XML&View, together?
What's the future of Compose, in terms of how it affects the things I got used to for years?
I ask this because I work on some large projects that I don't think will be migrated to use Compose in a very long time. Because of this, I also don't learn much about Compose.
As opposed to migration from Java to Kotlin, which has a nice conversion tool (granted it's not perfect at all, but it helps), here it seems like a very hard thing to do.
I also don't want to add it just as something extra, and then later it will become deprecated for something new, like what we had for "Kotlin synthetics" (AKA "Kotlin Android Extensions").
6
u/VasiliyZukanov Jan 23 '22
Google will keep maintaining and updating the "old" UI toolkit for years. Not least because Google's own projects use it now, and will use it long after most "fashionable" devs switch to Compose (just like Google adopted Kotlin internally long after they unleashed it on other devs, who basically QA'ed it).
As for whether Compose worth adopting now, I summarized my opinion in this post (among other things).
TL; DR; if you want to be productive and keep your project stable, Compose isn't a good choice.
1
u/poq106 Jan 23 '22
No. Google will support it essentially forever. The same way you can still create an Android app in Java. The question is should you? The problem is that sooner or later the market will adjust and employers will require Compose in your skill set. Imo it’s better to start learning today than be late to the party.
0
u/Zhuinden EpicPandaForce @ SO Jan 22 '22
1.) migration is rewrite
2.) I have doubts that they could just dismiss the entire View ecosystem, especially with how RecyclerView / ConstraintLayout are still pulling the ecosystem forwards, and their Compose counterparts are much more rigid and less extensible (if you want a lazy staggered grid, you have to write what LazyColumn does internally from scratch)
3.) the reason why I don't think Compose will get deprecated that easily is because of JetBrains Compose. If JetBrains Compose sinks, JetBrains sinks with it, and so will the Kotlin ecosystem (even if it is more of an afterthought protruding from the Android world, rather than a real independent thriving ecosystem of its own).
There might be some backend frameworks, but it shows that KMM has been alpha for over 3 years.