前提条件:父布局的宽度一定是固定的:例如match_parent 或者固定数值,或者0dp starttostart endtoend 约束布局子元素(需要点点点的控件中)中添加该属性
app:layout_constrainedWidth="true"
宽度设置为包裹
android:layout_width="wrap_content"
app:layout_constraintHorizontal_bias="0"
app:layout_constraintHorizontal_chainStyle="packed"
至此,解决,搞了半天儿...找到了这么个属性