반응형
LinearLayout | RelativeLayout | ConstraintLayout
[기초]
app:layout_constraintRight_toRightOf="parent" 의 의미
자신의 right의 constraint를 부여 하는데, parent의 right 이다.
<Button android:id="@+id/button" app:layout_constraintRight_toRightOf="parent"
app:layout_constraintLeft_toRightOf="@id/button2" .../>
<Button android:id="@+id/button" app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toLeftOf="@id/button" .../>
* constraint : 제한, 통제
[응용]
반응형
'안드로이드' 카테고리의 다른 글
RecyclerView에서 Drag&Drop을 이용해 View 위치 변경하기 (0) | 2020.04.25 |
---|