ConstraintLayout
相对定位 layout_constraintLeft_toLeftOf
文本基线layout_constraintBaseline_toBaselineOf
角度定位
app:layout_constraintCircle
边距
android:layout_marginStart和layout_goneMarginStart
居中和偏移
app:layout_constraintBottom_toBottomOf=“parent”
app:layout_constraintLeft_toLeftOf=“parent”
app:layout_constraintRight_toRightOf=“parent”
app:layout_constraintTop_toTopOf=“parent”
app:layout_constraintHorizontal_bias=“0.3”
app:layout_constraintVertical_bias=“0.3”
尺寸约束
app:layout_constraintWidth_percent
app:layout_constraintWidth_max
app:layout_constraintWidth_min
app:layout_constraintDimensionRatio="H,2:3"指的是 宽:高=2:3
app:layout_constraintDimensionRatio="W,2:3"指的是 高:宽=2:3
链
layout_constraintHorizontal_chainStyle(CHAIN_SPREAD,CHAIN_SPREAD_INSIDE ,CHAIN_PACKED )
屏障Barrier:app:constraint_referenced_ids
组合Group:app:constraint_referenced_ids
占位符Placeholder,setcontent将空间移动到占位符的位置
辅助线Guideline
http://www.jcodecraeer.com/a/anzhuokaifa/androidkaifa/2017/1015/8597.html