KB keyboard_arrow_right Android tips keyboard_arrow_right
1 - Use ConstraintLayout instead of RelativeLayout
1
Use ConstraintLayout instead of RelativeLayout
calendar_today
July 14
access_time
0min. read
remove_red_eye
285
thumb_up
3
comment
0
thumb_up
3
Consider using ConstraintLayout instead of RelativeLayout. RelativeLayout can be slow and inefficient, whereas ConstraintLayout is much more flexible.
Relative layouts have been around in Android for a long time, in fact it's been there since API level 1 and as such is very familiar to many Android developers. You can build great layouts using RelativeLayout, but now there's a new kid on the block, the ConstraintLayout. It's not only more flexible but offers many new ways to arrange related views within a parent.

Comments (0)