如何以编程方式正确设置layout_constraintStart_toStartOf
和qazxsw poi?
layout_constraintTop_toTopOf
到目前为止,我找不到<ImageView
android:id="@+id/firstButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/alarm"
app:layout_constraintStart_toStartOf="@+id/guideline4"
app:layout_constraintTop_toTopOf="@+id/guideline" />
和toStartOf
的toTopOf
属性,它相当于什么?
ConstraintSet
我想如果你想要 ConstraintSet constraintSet = new ConstraintSet();
constraintSet.clone(main_layout);
constraintSet.connect(R.id.firstButton, ConstraintSet.START, R.id.guideline4, ConstraintSet.END);
constraintSet.connect(R.id.firstButton, ConstraintSet.TOP, R.id.guideline, ConstraintSet.BOTTOM);
constraintSet.applyTo(main_layout);
到start
和start
到top
,它更像是
top
?