Layout Relatif dan Constraint Layout yang setara dengan properti
(1) Tata Letak Relatif:
android:layout_centerInParent="true"
(1) Setara Kendala setara:
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent"
(2) Tata Letak Relatif:
android:layout_centerHorizontal="true"
(2) Setara Kendala Setara:
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintEnd_toEndOf="parent"
(3) Tata Letak Relatif:
android:layout_centerVertical="true"
(3) Setara Kendala Setara:
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintTop_toTopOf="parent"
(4) Tata Letak Relatif:
android:layout_alignParentLeft="true"
(4) Setara Kendala Setara:
app:layout_constraintLeft_toLeftOf="parent"
(5) Tata Letak Relatif:
android:layout_alignParentStart="true"
(5) Setara Kendala Setara:
app:layout_constraintStart_toStartOf="parent"
(6) Tata Letak Relatif:
android:layout_alignParentRight="true"
(6) Setara Kendala Setara:
app:layout_constraintRight_toRightOf="parent"
(7) Tata Letak Relatif:
android:layout_alignParentEnd="true"
(7) Setara Kendala setara:
app:layout_constraintEnd_toEndOf="parent"
(8) Tata Letak Relatif:
android:layout_alignParentTop="true"
(8) Setara Kendala Setara:
app:layout_constraintTop_toTopOf="parent"
(9) Tata Letak Relatif:
android:layout_alignParentBottom="true"
(9) Setara Kendala Setara:
app:layout_constraintBottom_toBottomOf="parent"
(10) Tata Letak Relatif:
android:layout_alignStart="@id/view"
(10) Setara Kendala Setara:
app:layout_constraintStart_toStartOf="@id/view"
(11) Tata Letak Relatif:
android:layout_alignLeft="@id/view"
(11) Setara Kendala Setara:
app:layout_constraintLeft_toLeftOf="@id/view"
(12) Tata Letak Relatif:
android:layout_alignEnd="@id/view"
(12) Setara Kendala Setara:
app:layout_constraintEnd_toEndOf="@id/view"
(13) Tata Letak Relatif:
android:layout_alignRight="@id/view"
(13) Setara Kendala Setara:
app:layout_constraintRight_toRightOf="@id/view"
(14) Tata Letak Relatif:
android:layout_alignTop="@id/view"
(14) Setara Kendala Setara:
app:layout_constraintTop_toTopOf="@id/view"
(15) Tata Letak Relatif:
android:layout_alignBaseline="@id/view"
(15) Setara Kendala Setara:
app:layout_constraintBaseline_toBaselineOf="@id/view"
(16) Tata Letak Relatif:
android:layout_alignBottom="@id/view"
(16) Setara Kendala Setara:
app:layout_constraintBottom_toBottomOf="@id/view"
(17) Tata Letak Relatif:
android:layout_toStartOf="@id/view"
(17) Setara Kendala setara:
app:layout_constraintEnd_toStartOf="@id/view"
(18) Tata Letak Relatif:
android:layout_toLeftOf="@id/view"
(18) Setara Kendala Setara:
app:layout_constraintRight_toLeftOf="@id/view"
(19) Tata Letak Relatif:
android:layout_toEndOf="@id/view"
(19) Setara Kendala setara:
app:layout_constraintStart_toEndOf="@id/view"
(20) Tata Letak Relatif:
android:layout_toRightOf="@id/view"
(20) Setara Kendala setara:
app:layout_constraintLeft_toRightOf="@id/view"
(21) Tata Letak Relatif:
android:layout_above="@id/view"
(21) Setara Kendala setara:
app:layout_constraintBottom_toTopOf="@id/view"
(22) Tata Letak Relatif:
android:layout_below="@id/view"
(22) Setara Kendala setara:
app:layout_constraintTop_toBottomOf="@id/view"