Constraints Layout
Makesure you have added the dependency of Constraint layout.
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
The below are the capability or features of the constraint layout.
- Can design any layout by Constraints layout
- Layout is flat. (Layout should be as flat as possible coz Android takes much more time to rendering the view position on the screen)
- 0dp for match parent like
- Chain Views
- Use baseline
- Helper → Guidelines features