什么相当于ConstraintSet中的“toStartOf”和“toTopOf”?

问题描述 投票:-1回答:1

如何以编程方式正确设置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" /> toStartOftoTopOf属性,它相当于什么?

ConstraintSet
android-studio android-layout
1个回答
0
投票

我想如果你想要 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); startstarttop,它更像是

top

?

© www.soinside.com 2019 - 2024. All rights reserved.