|
1 | 1 | <?xml version="1.0" encoding="utf-8"?> |
2 | 2 | <layout xmlns:android="http://schemas.android.com/apk/res/android" |
3 | | - xmlns:app="http://schemas.android.com/apk/res-auto" |
4 | | - xmlns:tools="http://schemas.android.com/tools"> |
| 3 | + xmlns:app="http://schemas.android.com/apk/res-auto"> |
5 | 4 |
|
6 | 5 | <data> |
7 | | - <variable name="title" type="String" /> |
8 | | - <variable name="description" type="String" /> |
9 | | - <variable name="firstIcon" type="android.graphics.drawable.Drawable" /> |
10 | | - <variable name="firstTitle" type="String" /> |
11 | | - <variable name="firstDescription" type="String" /> |
12 | | - <variable name="secondIcon" type="android.graphics.drawable.Drawable" /> |
13 | | - <variable name="secondTitle" type="String" /> |
14 | | - <variable name="secondDescription" type="String" /> |
15 | | - <variable name="thirdIcon" type="android.graphics.drawable.Drawable" /> |
16 | | - <variable name="thirdTitle" type="String" /> |
17 | | - <variable name="thirdDescription" type="String" /> |
| 6 | + |
| 7 | + <variable |
| 8 | + name="title" |
| 9 | + type="String" /> |
| 10 | + |
| 11 | + <variable |
| 12 | + name="description" |
| 13 | + type="String" /> |
| 14 | + |
| 15 | + <variable |
| 16 | + name="firstIcon" |
| 17 | + type="android.graphics.drawable.Drawable" /> |
| 18 | + |
| 19 | + <variable |
| 20 | + name="firstTitle" |
| 21 | + type="String" /> |
| 22 | + |
| 23 | + <variable |
| 24 | + name="firstDescription" |
| 25 | + type="String" /> |
| 26 | + |
| 27 | + <variable |
| 28 | + name="secondIcon" |
| 29 | + type="android.graphics.drawable.Drawable" /> |
| 30 | + |
| 31 | + <variable |
| 32 | + name="secondTitle" |
| 33 | + type="String" /> |
| 34 | + |
| 35 | + <variable |
| 36 | + name="secondDescription" |
| 37 | + type="String" /> |
| 38 | + |
| 39 | + <variable |
| 40 | + name="thirdIcon" |
| 41 | + type="android.graphics.drawable.Drawable" /> |
| 42 | + |
| 43 | + <variable |
| 44 | + name="thirdTitle" |
| 45 | + type="String" /> |
| 46 | + |
| 47 | + <variable |
| 48 | + name="thirdDescription" |
| 49 | + type="String" /> |
18 | 50 | </data> |
19 | 51 |
|
20 | 52 | <androidx.constraintlayout.widget.ConstraintLayout |
|
29 | 61 | android:layout_marginTop="32dp" |
30 | 62 | android:text="@{title}" |
31 | 63 | android:textAppearance="?attr/textAppearanceHeadlineMedium" |
32 | | - app:layout_constraintTop_toTopOf="parent" |
| 64 | + app:layout_constraintEnd_toEndOf="parent" |
33 | 65 | app:layout_constraintStart_toStartOf="parent" |
34 | | - app:layout_constraintEnd_toEndOf="parent" /> |
| 66 | + app:layout_constraintTop_toTopOf="parent" /> |
35 | 67 |
|
36 | 68 | <com.google.android.material.textview.MaterialTextView |
37 | 69 | android:id="@+id/description" |
|
41 | 73 | android:text="@{description}" |
42 | 74 | android:textAppearance="?attr/textAppearanceBodyMedium" |
43 | 75 | android:textColor="?attr/colorOnSurfaceVariant" |
44 | | - app:layout_constraintTop_toBottomOf="@id/title" |
| 76 | + app:layout_constraintEnd_toEndOf="parent" |
45 | 77 | app:layout_constraintStart_toStartOf="parent" |
46 | | - app:layout_constraintEnd_toEndOf="parent"/> |
| 78 | + app:layout_constraintTop_toBottomOf="@id/title" /> |
47 | 79 |
|
48 | 80 | <androidx.constraintlayout.widget.ConstraintLayout |
49 | 81 | android:id="@+id/selection_group" |
|
65 | 97 |
|
66 | 98 | <com.google.android.material.card.MaterialCardView |
67 | 99 | android:id="@+id/card_first" |
68 | | - style="@style/Widget.App.Card.Selectable" |
69 | 100 | android:layout_width="match_parent" |
70 | 101 | android:layout_height="wrap_content"> |
| 102 | + |
71 | 103 | <include |
72 | 104 | android:id="@+id/option_first" |
73 | 105 | layout="@layout/item_onboarding_option" |
| 106 | + app:description="@{firstDescription}" |
74 | 107 | app:icon="@{firstIcon}" |
75 | | - app:title="@{firstTitle}" |
76 | | - app:description="@{firstDescription}" /> |
| 108 | + app:title="@{firstTitle}" /> |
77 | 109 | </com.google.android.material.card.MaterialCardView> |
78 | 110 |
|
79 | 111 | <com.google.android.material.card.MaterialCardView |
80 | 112 | android:id="@+id/card_second" |
81 | | - style="@style/Widget.App.Card.Selectable" |
82 | 113 | android:layout_width="match_parent" |
83 | 114 | android:layout_height="wrap_content" |
84 | | - android:layout_marginTop="16dp"> |
| 115 | + android:layout_marginTop="2dp" |
| 116 | + app:cardCornerRadius="4dp"> |
| 117 | + |
85 | 118 | <include |
86 | 119 | android:id="@+id/option_second" |
87 | 120 | layout="@layout/item_onboarding_option" |
| 121 | + app:description="@{secondDescription}" |
88 | 122 | app:icon="@{secondIcon}" |
89 | | - app:title="@{secondTitle}" |
90 | | - app:description="@{secondDescription}" /> |
| 123 | + app:title="@{secondTitle}" /> |
91 | 124 | </com.google.android.material.card.MaterialCardView> |
92 | 125 |
|
93 | 126 | <com.google.android.material.card.MaterialCardView |
94 | 127 | android:id="@+id/card_third" |
95 | | - style="@style/Widget.App.Card.Selectable" |
96 | 128 | android:layout_width="match_parent" |
97 | 129 | android:layout_height="wrap_content" |
98 | | - android:layout_marginTop="16dp"> |
| 130 | + android:layout_marginTop="2dp" |
| 131 | + app:shapeAppearanceOverlay="@style/ShapeAppearanceOverlay.CardViewBottomRounded"> |
| 132 | + |
99 | 133 | <include |
100 | 134 | android:id="@+id/option_third" |
101 | 135 | layout="@layout/item_onboarding_option" |
| 136 | + app:description="@{thirdDescription}" |
102 | 137 | app:icon="@{thirdIcon}" |
103 | | - app:title="@{thirdTitle}" |
104 | | - app:description="@{thirdDescription}" /> |
| 138 | + app:title="@{thirdTitle}" /> |
105 | 139 | </com.google.android.material.card.MaterialCardView> |
106 | 140 |
|
107 | 141 | </RadioGroup> |
|
111 | 145 | android:id="@+id/page_indicator" |
112 | 146 | android:layout_width="wrap_content" |
113 | 147 | android:layout_height="wrap_content" |
114 | | - android:orientation="horizontal" |
115 | 148 | android:layout_marginBottom="16dp" |
| 149 | + android:orientation="horizontal" |
116 | 150 | app:layout_constraintBottom_toBottomOf="parent" |
117 | | - app:layout_constraintStart_toStartOf="parent" |
118 | | - app:layout_constraintEnd_toEndOf="parent" /> |
| 151 | + app:layout_constraintEnd_toEndOf="parent" |
| 152 | + app:layout_constraintStart_toStartOf="parent" /> |
119 | 153 |
|
120 | 154 | </androidx.constraintlayout.widget.ConstraintLayout> |
121 | 155 | </layout> |
0 commit comments