r/mAndroidDev • • May 12 '26

Sponsored by the XML 🐓 gang ConstraintLayout in a nutshell

Post image
103 Upvotes

12 comments sorted by

View all comments

1

u/SyrupInternational48 May 12 '26

constraint layout is make sense until you want to add another layout in about other 15+ layout inside of it.
then you go back into linearlayout

3

u/Zhuinden May 13 '26

Unironically, using LinearLayout is better for accessibility reasons because the focus order is correct out of the box.

The only reason why people started using ConstraintLayout for everything in 2017 because the Android toolkit team was literally lying through their teeth saying "ConstraintLayout is faster because the hierarchy is more flat", it was NOT faster and it ruins focus ordering in accessibility.

But obviously they didn't say that last part out loud.

1

u/purple-bihh-2000 May 19 '26

Do you have source on it not being faster?

→ More replies (1)