|
18 | 18 | app:layout_constraintStart_toStartOf="parent" |
19 | 19 | app:layout_constraintTop_toTopOf="parent" /> |
20 | 20 |
|
| 21 | + <androidx.constraintlayout.widget.Barrier |
| 22 | + android:id="@+id/topBarrier" |
| 23 | + android:layout_width="wrap_content" |
| 24 | + android:layout_height="wrap_content" |
| 25 | + app:barrierDirection="top" |
| 26 | + app:constraint_referenced_ids="illustration_view" |
| 27 | + app:layout_constraintEnd_toEndOf="parent" |
| 28 | + app:layout_constraintStart_toStartOf="parent" |
| 29 | + app:layout_constraintTop_toBottomOf="@id/handle" /> |
| 30 | + |
21 | 31 | <com.airbnb.lottie.LottieAnimationView |
22 | 32 | android:id="@+id/illustration_view" |
23 | 33 | android:layout_width="wrap_content" |
24 | 34 | android:layout_height="wrap_content" |
25 | 35 | android:layout_marginTop="@dimen/margin_extra_large" |
26 | 36 | android:scaleType="centerCrop" |
27 | | - app:layout_constraintTop_toBottomOf="@id/handle" |
| 37 | + app:layout_constraintTop_toBottomOf="@id/topBarrier" |
28 | 38 | app:layout_constraintStart_toStartOf="parent" |
29 | 39 | app:layout_constraintBottom_toTopOf="@id/title" |
30 | 40 | app:lottie_rawRes="@raw/wp2jp" |
|
53 | 63 | android:layout_height="wrap_content" |
54 | 64 | android:layout_marginTop="@dimen/margin_extra_large" |
55 | 65 | app:layout_constraintTop_toBottomOf="@id/title" |
| 66 | + app:layout_constraintBottom_toTopOf="@id/bottomBarrier" |
56 | 67 | app:layout_constraintStart_toStartOf="parent" |
57 | 68 | app:layout_constraintEnd_toEndOf="parent"/> |
58 | 69 |
|
| 70 | + <androidx.constraintlayout.widget.Barrier |
| 71 | + android:id="@+id/bottomBarrier" |
| 72 | + android:layout_width="wrap_content" |
| 73 | + android:layout_height="wrap_content" |
| 74 | + app:barrierDirection="top" |
| 75 | + app:constraint_referenced_ids="primary_button" |
| 76 | + app:layout_constraintBottom_toTopOf="@id/primary_button" |
| 77 | + app:layout_constraintEnd_toEndOf="parent" |
| 78 | + app:layout_constraintStart_toStartOf="parent" /> |
| 79 | + |
59 | 80 | <com.google.android.material.button.MaterialButton |
60 | 81 | android:id="@+id/primary_button" |
61 | 82 | android:layout_width="match_parent" |
|
0 commit comments