app:layout_constraintLeft_toLeftOf
app:layout_constraintLeft_toRightOf 我最左边的位置 在别人的右边 下面的意思类似
app:layout_constraintRight_toRightOf
app:layout_constraintRight_toLeftOf
app:layout_constraintTop_toTopOf
app:layout_constraintTop_toBottomOf
app:layout_constraintBottom_toBottomOf
app:layout_constraintBottom_toTopOf
layout_constraintHorizontal_bias(水平方向偏移)(范围0-1)
layout_constraintVertical_bias(垂直方向偏移)(范围0-1)
就是这个空间左右或者上线的间距的比例
比方说 layout_constraintHorizontal_bias= “0.7”
本来控件距离左边是0 右边也是100 设置0.7之后 距离左边70 距离右边30
当设置了边界约束属性后,View会自动出现在中间,也就是说,默认的偏移属性是0.5
layout_constraintHorizontal_weight //水平方向上比重,类似线性布局
layout_constraintVertical_weight //垂直方向上比重,类似线性布局
这个必须设置 相对左边的控件和相对右边的控件 否则会失效
类似于这样
app:layout_constraintLeft_toRightOf="@id/bt_a"
app:layout_constraintRight_toLeftOf="@id/bt_c"