r/mAndroidDev • u/class_cast_exception Deprecated is just a suggestion • Apr 21 '26
} } } } } } } } } } } } Level of stress = 100%
98
Upvotes
r/mAndroidDev • u/class_cast_exception Deprecated is just a suggestion • Apr 21 '26
80
u/Fair-Degree-2200 null!! Apr 21 '26
"@Preview just works"
Hahahahaahahahahaha 🤣🤣🤣🤣🤣 💀 🪦
19
u/doubleiappdev Deprecated is just a suggestion Apr 21 '26
Preview just works. Except when you get Render issues. But when you don't get Render issues, it works 10 times out of 10.
25
u/Zhuinden DDD: Deprecation-Driven Development Apr 21 '26
I swear whoever wrote that right side part of the area has never had to write a VisualTransformation to format a global phone number https://developer.android.com/develop/ui/compose/quick-guides/content/auto-format-phone-number#auto-format_a_number_in_the_text_field or draw a gradient background in Compose (and doesn't know about rememberUpdatedState)
I also want to see a 6 deep nested Composable render its preview correctly when someone in the past gave it a = viewModel() for some reason
6
u/programadorthi Apr 21 '26
Imagine you creating something new from scratch to be more complex than previous thing? Yes, this kind of post with any technology is a waste of time. Android Studio isn't a good usecase about something created to be better that it isn't. I'm talking after version 2.3
4
u/KungFuFlames Apr 21 '26
I wonder is someone actually supports XML layout
10
u/Mirko_ddd @Deprecated Apr 21 '26
Now I am 2x more fan of XML.
3
u/AZKZer0 AnDrOId dEvelOPmenT is My PasSion Apr 21 '26
we be composing some sweet sweet fun
3
u/satoryvape Apr 22 '26
"@Preview just works"
Todd Howard, is it you ?
6
u/Xammm Jetpack Compost Apr 21 '26
Reading the comments, I see XML glazers can't handle the truth.
2
u/thermosiphon420 Apr 23 '26
comPosers will take a -5 to performance and flexibility stats to avoid learning declarative UI in a framework that doesn't rigidly force it
1
u/DigitalTectonics Apr 23 '26
XML worked for some of the largest apps imagine and most that were delivered. A developer can be good or bad at either of these sides, they are just tools and if you are not good with one tool it doesn't mean it is a bad tool.
RecyclerViews have a ton of uses, but there are times that a ScrollView is just less complexity to maintain. Having a lazy column in compose is great for auto scrolling, but have it display 10k items and it breaks in odd ways.
1
u/MicroappsTeam Apr 26 '26
When I use neither 🧐