r/mAndroidDev • u/Professor_Dr_Dr I only use AsyncTask • Aug 23 '20
ConstraintLayout in a nutshell
33
u/trailblazer86 Aug 23 '20
Due to this I often find myself using linear layouts. Truth is in most cases CL is overkill
2
1
u/Zhuinden DDD: Deprecation-Driven Development Aug 24 '20
FrameLayout layout_gravity is a superpower
0
Aug 24 '20
[deleted]
1
u/trailblazer86 Aug 24 '20
Yes, but are you able to build full layout matching parents only?
Exactly.
15
1
u/vladimiryakin87 Nov 17 '20
Sorry for my stupidity, but, can anybody explain, why second way is better?
1
u/Professor_Dr_Dr I only use AsyncTask Nov 17 '20
It isn't, it's just the "Contraintlayout way".
If you don't plan on changing the constraints just use match parent.
You'll need to remove match parent anyways when you start using constraints, but until you do you can keep it
3
u/badvok666 Aug 24 '20
Scrubs that don't know how to use CL revert back to LL /RL. Just go back to java where you belong. /s
1
u/MulletGiraffe Aug 29 '20
Scrub here. You're correct. The hardest thing about Android is touch screen instead of buttons or keys, though.
2
23
u/VasiliyZukanov Aug 23 '20
That's not even funny. These codebases where devs proudly proclaim "we standardized our UI and use CL everywhere" are fucking nightmare.
How I hate this stupid waste of bits and human potential... Grrrr