Why go for Constraints layout as we already have Relative Layout? [duplicate]
问题 This question already has answers here : Differences between ConstraintLayout and RelativeLayout (10 answers) Closed 3 years ago . Why RelativeLayout replaced to ConstraintLayout in the default layout file of an android empty activity. I need to know why we should use ConstraintLayout , what other benefits it provides to us. 回答1: As provided by Xaver Kapeller - "The main purpose of the ConstraintLayout is to fix problems with the RelativeLayout, and it does it so well. You can do so many