|
16 | 16 |
|
17 | 17 | <TextView |
18 | 18 | android:id="@+id/textView2" |
| 19 | + style="@style/AppTheme.HeaderText" |
19 | 20 | android:layout_width="wrap_content" |
20 | 21 | android:layout_height="wrap_content" |
21 | 22 | android:layout_marginStart="8dp" |
22 | 23 | android:layout_marginTop="8dp" |
23 | | - android:alpha=".87" |
24 | 24 | android:text="@string/customer_details" |
25 | | - android:textColor="@android:color/black" |
26 | 25 | app:layout_constraintStart_toStartOf="parent" |
27 | 26 | app:layout_constraintTop_toTopOf="parent" /> |
28 | 27 |
|
29 | 28 | <com.google.android.material.textfield.TextInputLayout |
30 | 29 | android:id="@+id/tilName" |
| 30 | + style="@style/AppTheme.InputField" |
31 | 31 | android:layout_width="0dp" |
32 | 32 | android:layout_height="wrap_content" |
33 | | - android:layout_marginStart="8dp" |
| 33 | + android:layout_marginLeft="8dp" |
34 | 34 | android:layout_marginTop="8dp" |
| 35 | + android:layout_marginRight="8dp" |
35 | 36 | app:layout_constraintHorizontal_bias="0.0" |
36 | 37 | app:layout_constraintLeft_toLeftOf="parent" |
37 | 38 | app:layout_constraintRight_toRightOf="parent" |
38 | 39 | app:layout_constraintTop_toBottomOf="@+id/textView2"> |
39 | 40 |
|
40 | | - <EditText |
| 41 | + <com.google.android.material.textfield.TextInputEditText |
41 | 42 | android:id="@+id/etName" |
42 | 43 | android:layout_width="match_parent" |
43 | 44 | android:layout_height="match_parent" |
44 | | - android:ems="10" |
45 | | - android:hint="@string/name" |
46 | | - android:inputType="textPersonName" |
47 | 45 | android:textSize="14sp" |
48 | | - tools:ignore="Autofill" /> |
| 46 | + android:hint="@string/name" |
| 47 | + android:inputType="textPersonName"/> |
49 | 48 | </com.google.android.material.textfield.TextInputLayout> |
50 | 49 |
|
51 | 50 | <com.google.android.material.textfield.TextInputLayout |
52 | 51 | android:id="@+id/tilPhone" |
| 52 | + style="@style/AppTheme.InputField" |
53 | 53 | android:layout_width="0dp" |
54 | 54 | android:layout_height="wrap_content" |
55 | | - android:layout_marginStart="8dp" |
| 55 | + android:layout_marginLeft="8dp" |
56 | 56 | android:layout_marginTop="8dp" |
| 57 | + android:layout_marginRight="8dp" |
57 | 58 | app:layout_constraintLeft_toLeftOf="parent" |
58 | 59 | app:layout_constraintRight_toRightOf="parent" |
59 | | - app:layout_constraintTop_toBottomOf="@+id/tilName" |
60 | | - tools:layout_editor_absoluteX="8dp" |
61 | | - tools:layout_editor_absoluteY="0dp"> |
| 60 | + app:layout_constraintTop_toBottomOf="@+id/tilName"> |
62 | 61 |
|
63 | | - <EditText |
| 62 | + <com.google.android.material.textfield.TextInputEditText |
64 | 63 | android:id="@+id/etPhone" |
65 | 64 | android:layout_width="match_parent" |
66 | 65 | android:layout_height="match_parent" |
67 | | - android:ems="10" |
68 | 66 | android:hint="@string/phone_number" |
69 | 67 | android:inputType="none|phone" |
70 | | - android:textSize="14sp" |
71 | | - tools:ignore="Autofill" /> |
| 68 | + android:textSize="14sp" /> |
72 | 69 | </com.google.android.material.textfield.TextInputLayout> |
73 | 70 |
|
74 | 71 | <com.google.android.material.textfield.TextInputLayout |
75 | 72 | android:id="@+id/tilAddress" |
| 73 | + style="@style/AppTheme.InputField" |
76 | 74 | android:layout_width="0dp" |
77 | 75 | android:layout_height="wrap_content" |
78 | | - android:layout_marginStart="8dp" |
| 76 | + android:layout_marginLeft="8dp" |
79 | 77 | android:layout_marginTop="8dp" |
| 78 | + android:layout_marginRight="8dp" |
80 | 79 | app:layout_constraintLeft_toLeftOf="parent" |
81 | 80 | app:layout_constraintRight_toRightOf="parent" |
82 | | - app:layout_constraintTop_toBottomOf="@+id/tilPhone" |
83 | | - tools:layout_editor_absoluteX="8dp" |
84 | | - tools:layout_editor_absoluteY="0dp"> |
| 81 | + app:layout_constraintTop_toBottomOf="@+id/tilPhone"> |
85 | 82 |
|
86 | | - <EditText |
| 83 | + <com.google.android.material.textfield.TextInputEditText |
87 | 84 | android:id="@+id/etDeliveryAddress" |
88 | 85 | android:layout_width="match_parent" |
89 | 86 | android:layout_height="match_parent" |
90 | | - android:ems="10" |
91 | 87 | android:hint="@string/delivery_address" |
92 | 88 | android:inputType="textMultiLine" |
93 | | - android:textSize="14sp" |
94 | | - tools:ignore="Autofill" /> |
| 89 | + android:textSize="14sp" /> |
95 | 90 | </com.google.android.material.textfield.TextInputLayout> |
96 | 91 |
|
97 | 92 | <com.google.android.material.textfield.TextInputLayout |
98 | 93 | android:id="@+id/tilComments" |
| 94 | + style="@style/AppTheme.InputField" |
99 | 95 | android:layout_width="0dp" |
100 | 96 | android:layout_height="wrap_content" |
101 | 97 | android:layout_marginLeft="8dp" |
102 | 98 | android:layout_marginTop="8dp" |
103 | 99 | android:layout_marginRight="8dp" |
| 100 | + android:hint="@string/additional_comments" |
| 101 | + app:helperText="Optional" |
104 | 102 | app:layout_constraintHorizontal_bias="0.0" |
105 | 103 | app:layout_constraintLeft_toLeftOf="parent" |
106 | 104 | app:layout_constraintRight_toRightOf="parent" |
107 | 105 | app:layout_constraintTop_toBottomOf="@+id/tilAddress"> |
108 | 106 |
|
109 | | - <MultiAutoCompleteTextView |
| 107 | + <com.google.android.material.textfield.TextInputEditText |
110 | 108 | android:id="@+id/etComments" |
111 | 109 | android:layout_width="match_parent" |
112 | 110 | android:layout_height="match_parent" |
113 | | - android:hint="@string/additional_comments_optional" |
114 | 111 | android:textSize="14sp" /> |
115 | 112 | </com.google.android.material.textfield.TextInputLayout> |
116 | 113 |
|
|
128 | 125 | app:layout_constraintTop_toBottomOf="@+id/rgPayment" |
129 | 126 | app:layout_constraintVertical_bias="1.0" /> |
130 | 127 |
|
131 | | - <Button |
| 128 | + <com.google.android.material.button.MaterialButton |
132 | 129 | android:id="@+id/btnPlaceOrder" |
| 130 | + style="@style/AppTheme.PrimaryButton" |
133 | 131 | android:layout_width="0dp" |
134 | | - android:layout_height="wrap_content" |
| 132 | + android:layout_height="56dp" |
135 | 133 | android:layout_marginLeft="8dp" |
136 | 134 | android:layout_marginRight="8dp" |
137 | 135 | android:layout_marginBottom="9dp" |
138 | | - android:background="@drawable/large_button" |
139 | 136 | android:text="@string/place_order" |
140 | 137 | android:textColor="@android:color/white" |
141 | 138 | app:layout_constraintBottom_toBottomOf="parent" |
|
144 | 141 |
|
145 | 142 | <TextView |
146 | 143 | android:id="@+id/textView" |
| 144 | + style="@style/AppTheme.HeaderText" |
147 | 145 | android:layout_width="wrap_content" |
148 | 146 | android:layout_height="wrap_content" |
149 | 147 | android:layout_marginStart="8dp" |
150 | | - android:layout_marginTop="8dp" |
151 | | - android:alpha=".87" |
| 148 | + android:layout_marginTop="16dp" |
152 | 149 | android:text="@string/payment" |
153 | | - android:textColor="@android:color/black" |
154 | 150 | app:layout_constraintStart_toStartOf="parent" |
155 | 151 | app:layout_constraintTop_toBottomOf="@+id/tilComments" /> |
156 | 152 |
|
|
0 commit comments