1.百分比布局
//分别为高和宽的比例,
app:layout_constraintHeight_percent="0.5"
app:layout_constraintWidth_percent="0.5"
注意:设置 app:layout_constraintHeight_default=""或app:layout_constraintWidth_default=""时会无效
2.类似LinearLayout的权重
//0DP不可以少,也可以用
android:layout_width="0dp"
app:layout_constraintHorizontal_weight="0.58"
//填充剩余位置
android:layout_height="0dp"
app:layout_constraintHeight_default="spread"