[Android] Constraint Left vs Start , Right vs End

2022. 3. 11. 10:34모바일/Android_Java

ㅇㅇㅇ

Start = Left

End = Right

 

but

 

버튼3
버튼1 버튼2

버튼을 이렇게 배치하고 싶을 때

app:layout_constraintEnd_toEndof = "@+id/버튼2"

app:layout_constraintStart_toStartof = "@+id/버튼1"

or

app:layout_constraintRight_toRightof = "@+id/버튼2"

app:layout_constraintLeft_toLeftof = "@+id/버튼1"

 

이렇게 설정하면 되는데

app:layout_constraintRight_toRightof = "@+id/버튼2"

app:layout_constraintStart_toStartof = "@+id/버튼1"

 

이렇게 섞어서 사용하면 안된다.