Android Constraint Layout Bias

After the left and right constraints

The layout will be pulled to the middle.

What if we want to pull 20 percent?

        app:layout_constraintHorizontal_bias="0.2"

very simple

But it should be noted that

When the upper and lower or left and right are constrained to be the same line, such as this

bias doesn't work

Guess you like

Origin blog.csdn.net/mp624183768/article/details/124450802