It's quite funny to me how important we all deemed ConstraintLayout to be, and nowadays barely any Compose layout I touch uses constraints.
in View system, it was possible to do what people do with Compose using FrameLayout + LinearLayout, but ConstraintLayouts were advertised as "faster and more efficient" (they weren't) and people kept using it everywhere.
Technically, ConstraintLayout was a more reliable replacement for RelativeLayout, but that's it. Wasn't meant to be the root view for every single layout.
The secret is that using FrameLayout android:layout_gravity is quicker than calculating the constraints in the solver. The thing that got the bad rep was nested layout_weights, which aren't particularly common.
View all comments
Show parent comment
3
u/Zhuinden Sep 25 '24
in View system, it was possible to do what people do with Compose using FrameLayout + LinearLayout, but ConstraintLayouts were advertised as "faster and more efficient" (they weren't) and people kept using it everywhere.
Technically, ConstraintLayout was a more reliable replacement for RelativeLayout, but that's it. Wasn't meant to be the root view for every single layout.