A ConstraintLayout is a ViewGroup which allows you to position and size widgets in a flexible way. There are currently various types of constraints that you can use: Relative positioning Margins Centering positioning Circular positioning Visibility behavior Dimension constraints Chains Virtual Helpers objects In this tutorial we will look about Relative positioning more detailly. Relative positioning Relative positioning is one of the basic building block of creating layouts in ConstraintLayout. Those constraints allow you to position a given widget relative to another one. You can constrain a widget on the horizontal and vertical axis: Horizontal Axis: left, right, start and end sides Vertical Axis: top, bottom sides and text baseline Here is the list of available constraints. layout_constraintLeft_toLeftOf layout_constraintLeft_toRightOf layout_constraintRight_toLeftOf layout_constraintRight_toRightOf layout_constraintTop_toTop...
A plat with simple tutorial for native android developers.