|
1 | 1 | <?xml version="1.0" encoding="utf-8"?>
|
2 | 2 | <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
3 | 3 | xmlns:tools="http://schemas.android.com/tools"
|
| 4 | + xmlns:app="http://schemas.android.com/apk/res-auto" |
4 | 5 | android:id="@+id/activity_main"
|
5 | 6 | android:layout_width="match_parent"
|
6 | 7 | android:layout_height="match_parent"
|
|
11 | 12 | <com.google.android.material.appbar.AppBarLayout
|
12 | 13 | android:layout_width="match_parent"
|
13 | 14 | android:layout_height="?android:attr/actionBarSize"
|
14 |
| - android:elevation="4dp"> |
| 15 | + app:elevation="4dp"> |
15 | 16 |
|
16 | 17 | <RelativeLayout
|
17 | 18 | android:layout_width="match_parent"
|
|
22 | 23 | android:layout_height="wrap_content"
|
23 | 24 | android:layout_centerVertical="true"
|
24 | 25 | android:layout_marginLeft="15dp"
|
25 |
| - android:src="@drawable/ic_menu" /> |
| 26 | + android:src="@drawable/ic_menu" |
| 27 | + android:layout_marginStart="15dp" /> |
26 | 28 |
|
27 | 29 | <TextView
|
28 | 30 | android:layout_width="wrap_content"
|
29 | 31 | android:layout_height="wrap_content"
|
30 | 32 | android:layout_centerInParent="true"
|
31 | 33 | android:layout_gravity="center"
|
32 |
| - android:text="Settings" |
| 34 | + android:text="@string/settings" |
33 | 35 | android:textColor="@android:color/black"
|
34 | 36 | android:textSize="20sp" />
|
35 | 37 | </RelativeLayout>
|
|
42 | 44 |
|
43 | 45 | <LinearLayout
|
44 | 46 | android:layout_width="match_parent"
|
45 |
| - android:layout_height="match_parent" |
| 47 | + android:layout_height="wrap_content" |
46 | 48 | android:orientation="vertical">
|
47 | 49 |
|
48 | 50 | <RelativeLayout
|
|
52 | 54 | android:background="@android:color/white"
|
53 | 55 | android:clickable="true"
|
54 | 56 | android:foreground="?attr/selectableItemBackground"
|
55 |
| - android:padding="15dp"> |
| 57 | + android:padding="15dp" |
| 58 | + android:focusable="true"> |
56 | 59 |
|
57 | 60 | <TextView
|
58 | 61 | android:layout_width="wrap_content"
|
59 | 62 | android:layout_height="wrap_content"
|
60 |
| - android:text="Edit Profile" |
| 63 | + android:text="@string/edit_profile" |
61 | 64 | android:textColor="@android:color/black"
|
62 | 65 | android:textSize="16sp" />
|
63 | 66 |
|
|
70 | 73 | android:background="@android:color/white"
|
71 | 74 | android:clickable="true"
|
72 | 75 | android:foreground="?attr/selectableItemBackground"
|
73 |
| - android:padding="15dp"> |
| 76 | + android:padding="15dp" |
| 77 | + android:focusable="true"> |
74 | 78 |
|
75 | 79 | <TextView
|
76 | 80 | android:layout_width="wrap_content"
|
77 | 81 | android:layout_height="wrap_content"
|
78 |
| - android:text="Your Status" |
| 82 | + android:text="@string/your_status" |
79 | 83 | android:textColor="@android:color/black"
|
80 | 84 | android:textSize="16sp" />
|
81 | 85 |
|
|
88 | 92 | android:background="@android:color/white"
|
89 | 93 | android:clickable="true"
|
90 | 94 | android:foreground="?attr/selectableItemBackground"
|
91 |
| - android:padding="15dp"> |
| 95 | + android:padding="15dp" |
| 96 | + android:focusable="true"> |
92 | 97 |
|
93 | 98 | <TextView
|
94 | 99 | android:layout_width="wrap_content"
|
95 | 100 | android:layout_height="wrap_content"
|
96 | 101 | android:layout_centerVertical="true"
|
97 |
| - android:text="Push Notifications" |
| 102 | + android:text="@string/push_notifications" |
98 | 103 | android:textColor="@android:color/black"
|
99 | 104 | android:textSize="16sp" />
|
100 | 105 |
|
|
103 | 108 | android:layout_height="wrap_content"
|
104 | 109 | android:layout_alignParentRight="true"
|
105 | 110 | android:layout_centerVertical="true"
|
106 |
| - android:src="@drawable/ic_arrow" /> |
| 111 | + android:src="@drawable/ic_arrow" |
| 112 | + android:layout_alignParentEnd="true" /> |
107 | 113 |
|
108 | 114 | </RelativeLayout>
|
109 | 115 |
|
|
114 | 120 | android:background="@android:color/white"
|
115 | 121 | android:clickable="true"
|
116 | 122 | android:foreground="?attr/selectableItemBackground"
|
117 |
| - android:padding="15dp"> |
| 123 | + android:padding="15dp" |
| 124 | + android:focusable="true"> |
118 | 125 |
|
119 | 126 | <TextView
|
120 | 127 | android:layout_width="wrap_content"
|
121 | 128 | android:layout_height="wrap_content"
|
122 | 129 | android:layout_centerVertical="true"
|
123 |
| - android:text="Do Not Disturb" |
| 130 | + android:text="@string/do_not_disturb" |
124 | 131 | android:textColor="@android:color/black"
|
125 | 132 | android:textSize="16sp" />
|
126 | 133 |
|
|
129 | 136 | android:layout_height="wrap_content"
|
130 | 137 | android:layout_alignParentRight="true"
|
131 | 138 | android:layout_centerVertical="true"
|
132 |
| - android:src="@drawable/ic_arrow" /> |
| 139 | + android:src="@drawable/ic_arrow" |
| 140 | + android:layout_alignParentEnd="true" /> |
133 | 141 |
|
134 | 142 | </RelativeLayout>
|
135 | 143 |
|
|
140 | 148 | android:background="@android:color/white"
|
141 | 149 | android:clickable="true"
|
142 | 150 | android:foreground="?attr/selectableItemBackground"
|
143 |
| - android:padding="15dp"> |
| 151 | + android:padding="15dp" |
| 152 | + android:focusable="true"> |
144 | 153 |
|
145 | 154 | <TextView
|
146 | 155 | android:layout_width="wrap_content"
|
147 | 156 | android:layout_height="wrap_content"
|
148 | 157 | android:layout_centerVertical="true"
|
149 |
| - android:text="Advanced" |
| 158 | + android:text="@string/advanced" |
150 | 159 | android:textColor="@android:color/black"
|
151 | 160 | android:textSize="16sp" />
|
152 | 161 |
|
|
155 | 164 | android:layout_height="wrap_content"
|
156 | 165 | android:layout_alignParentRight="true"
|
157 | 166 | android:layout_centerVertical="true"
|
158 |
| - android:src="@drawable/ic_arrow" /> |
| 167 | + android:src="@drawable/ic_arrow" |
| 168 | + android:layout_alignParentEnd="true" /> |
159 | 169 |
|
160 | 170 | </RelativeLayout>
|
161 | 171 |
|
|
166 | 176 | android:background="@android:color/white"
|
167 | 177 | android:clickable="true"
|
168 | 178 | android:foreground="?attr/selectableItemBackground"
|
169 |
| - android:padding="15dp"> |
| 179 | + android:padding="15dp" |
| 180 | + android:focusable="true"> |
170 | 181 |
|
171 | 182 | <TextView
|
172 | 183 | android:layout_width="wrap_content"
|
173 | 184 | android:layout_height="wrap_content"
|
174 | 185 | android:layout_centerVertical="true"
|
175 |
| - android:text="Submit Feedback" |
| 186 | + android:text="@string/submit_feedback" |
176 | 187 | android:textColor="@android:color/black"
|
177 | 188 | android:textSize="16sp" />
|
178 | 189 |
|
|
181 | 192 | android:layout_height="wrap_content"
|
182 | 193 | android:layout_alignParentRight="true"
|
183 | 194 | android:layout_centerVertical="true"
|
184 |
| - android:src="@drawable/ic_arrow" /> |
| 195 | + android:src="@drawable/ic_arrow" |
| 196 | + android:layout_alignParentEnd="true" /> |
185 | 197 |
|
186 | 198 | </RelativeLayout>
|
187 | 199 |
|
|
193 | 205 | android:background="@android:color/white"
|
194 | 206 | android:clickable="true"
|
195 | 207 | android:foreground="?attr/selectableItemBackground"
|
196 |
| - android:padding="15dp"> |
| 208 | + android:padding="15dp" |
| 209 | + android:focusable="true"> |
197 | 210 |
|
198 | 211 | <TextView
|
199 | 212 | android:layout_width="wrap_content"
|
200 | 213 | android:layout_height="wrap_content"
|
201 | 214 | android:layout_centerVertical="true"
|
202 |
| - android:text="Rate Us" |
| 215 | + android:text="@string/rate_us" |
203 | 216 | android:textColor="@android:color/black"
|
204 | 217 | android:textSize="16sp" />
|
205 | 218 |
|
|
208 | 221 | android:layout_height="wrap_content"
|
209 | 222 | android:layout_alignParentRight="true"
|
210 | 223 | android:layout_centerVertical="true"
|
211 |
| - android:src="@drawable/ic_arrow" /> |
| 224 | + android:src="@drawable/ic_arrow" |
| 225 | + android:layout_alignParentEnd="true" /> |
212 | 226 |
|
213 | 227 | </RelativeLayout>
|
214 | 228 |
|
|
219 | 233 | android:background="@android:color/white"
|
220 | 234 | android:clickable="true"
|
221 | 235 | android:foreground="?attr/selectableItemBackground"
|
222 |
| - android:padding="15dp"> |
| 236 | + android:padding="15dp" |
| 237 | + android:focusable="true"> |
223 | 238 |
|
224 | 239 | <TextView
|
225 | 240 | android:layout_width="wrap_content"
|
226 | 241 | android:layout_height="wrap_content"
|
227 | 242 | android:layout_centerVertical="true"
|
228 |
| - android:text="Help" |
| 243 | + android:text="@string/help" |
229 | 244 | android:textColor="@android:color/black"
|
230 | 245 | android:textSize="16sp" />
|
231 | 246 |
|
|
234 | 249 | android:layout_height="wrap_content"
|
235 | 250 | android:layout_alignParentRight="true"
|
236 | 251 | android:layout_centerVertical="true"
|
237 |
| - android:src="@drawable/ic_arrow" /> |
| 252 | + android:src="@drawable/ic_arrow" |
| 253 | + android:layout_alignParentEnd="true" /> |
238 | 254 |
|
239 | 255 | </RelativeLayout>
|
240 | 256 |
|
|
246 | 262 | android:clickable="true"
|
247 | 263 | android:layout_marginBottom="15dp"
|
248 | 264 | android:foreground="?attr/selectableItemBackground"
|
249 |
| - android:padding="15dp"> |
| 265 | + android:padding="15dp" |
| 266 | + android:focusable="true"> |
250 | 267 |
|
251 | 268 | <TextView
|
252 | 269 | android:layout_width="wrap_content"
|
253 | 270 | android:layout_height="wrap_content"
|
254 | 271 | android:layout_centerVertical="true"
|
255 |
| - android:text="About" |
| 272 | + android:text="@string/about" |
256 | 273 | android:textColor="@android:color/black"
|
257 | 274 | android:textSize="16sp" />
|
258 | 275 |
|
|
261 | 278 | android:layout_height="wrap_content"
|
262 | 279 | android:layout_alignParentRight="true"
|
263 | 280 | android:layout_centerVertical="true"
|
264 |
| - android:src="@drawable/ic_arrow" /> |
| 281 | + android:src="@drawable/ic_arrow" |
| 282 | + android:layout_alignParentEnd="true" /> |
265 | 283 |
|
266 | 284 | </RelativeLayout>
|
267 | 285 |
|
268 | 286 | </LinearLayout>
|
269 | 287 |
|
270 | 288 | </ScrollView>
|
271 | 289 |
|
272 |
| - |
273 | 290 | </LinearLayout>
|
0 commit comments