August 2017
Beginner to intermediate
220 pages
4h 50m
English
Bias can be best understood here as a percentage value, but rather than position the view according to its center or a corner, it is the percentage of space either side of it. So if the bias towards the top is 33%, then the margin below will be twice the size of the one below it.
Setting bias is even easier than understanding it, as once a constraint is set on any opposing sides of a view, an associated slider will appear in the Properties graphic Properties editor:

A quick glance at the generated code shows the format for this attribute as follows:
app:layout_constraintHorizontal_bias="0.33" ...
Read now
Unlock full access