not performant as top level layouts. • There needs to be a layout to bridge this gap and be the suitable standard for an ideal top level view group. • Should have the performance of non weighted Linear Layout and the flexibility of a Relative Layout.
of a layout. • Although you can edit a ConstraintLayout in XML, you never have to. • Part of the Support Library. • Compatible with Android 2.3 (Gingerbread) and higher. • Currently in preview.
when added Existing views remain untouched Connections are typically made to the nearest views Infer Constraints are added to existing views Does not touch constraints which were explicitly added
to fit view contents ◦ layout_width = “wrap_content” • Fixed Size ◦ Measure to specified dimension ◦ layout_width = “100dp” • Any Size ◦ Fill the space allowed by constraints ◦ Layout_width = “0dp”
of the same axis, it will be spaced evenly between the two target anchor points by default. • But you are allowed to specify bias to give more weight to a particular constraint • Similar to LinearLayout/GridLayout but now you don’t necessarily have to take the available space.