Changes

Jump to: navigation, search

A Guide to the Android ConstraintLayout

3 bytes removed, 16:49, 6 June 2016
Opposing Constraints
[[File:Android constraintlayout single button opposing.png|centerframed|ConstraintLayout opposing constraints with Bias]]
Figure 17-2
The key point to understand here is that once opposing constraints are implemented on a particular axis, the positioning of the widget becomes percentage rather than coordinate based. Instead of being fixed at 20dp from the top of the layout, for example, the widget is now positioned at a point 30% from the top of the layout. In different orientations and when running on larger or smaller screens, the Button will always be in the same location relative to the dimensions of the parent layout.
It is now important to understand that the layout outlined in Figure 17 2 has been implemented using not only opposing constraints, but also by applying constraint bias.
== Constraint Bias ==

Navigation menu