垂直方向
layout_constraintBaseline_toBaselineOf 文本基線對(duì)齊
這個(gè)不能對(duì)齊的話就
app:layout_constraintBottom_toBottomOf="@id/tv_2"
app:layout_constraintTop_toTopOf="@+id/tv_2">
上邊對(duì)齊他上邊
下邊對(duì)齊他下邊
如果左邊豎著兩個(gè)View 右邊的view要在這兩個(gè)View垂直居中
那么就右邊的View上邊對(duì)齊左邊最上方的邊蒲犬,下邊對(duì)齊左邊最下方的邊
app:layout_constraintTop_toTopOf="@+id/tv_1"
app:layout_constraintBottom_toBottomOf="@+id/tv_2"
水平方向同理
![240](https://cdn2.jianshu.io/assets/default_avatar/11-4d7c6ca89f439111aff57b23be1c73ba.jpg?imageMogr2/auto-orient/strip|imageView2/1/w/240/h/240)