-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit 3746319
committed
Refactor: Modernize UI with View Binding and Edge-to-Edge
This commit introduces several modern Android development practices across the application.
First, it refactors multiple Activities and Fragments to use View Binding instead of `findViewById`. This improves null safety and type safety when accessing views. Affected areas include `GridViewActivity`, `RadioButtonsActivity`, `AndroidStudioFragment`, `RoomActivity`, and others.
Second, it enhances the native ad loading mechanism by dynamically resolving view bindings via reflection. This makes the `NativeAdLoader` more robust and less reliant on static view IDs.
Third, Edge-to-Edge display is now consistently applied in `HelpActivity` and `SupportActivity` for a more immersive user interface. The general implementation in `BaseActivity` has been removed in favor of explicit calls in each relevant activity.
Finally, this commit adds new string resources for the "Spinner" summary in multiple languages.1 parent 8933a43 commit 3746319
File tree
49 files changed
+366
-142
lines changed- app/src/main
- java/com/d4rk/androidtutorials/java
- ads/managers
- ui
- components
- screens
- android
- lessons
- basics
- sdk
- shortcuts/tabs
- clocks/clock/tabs
- data/room
- tabs
- layouts
- linear/tabs
- relative/tabs
- table/tabs
- networking/retrofit/tabs
- progress/progressbar/tabs
- start
- views
- grid
- images/tabs
- spinner/tabs
- help
- main
- onboarding
- settings
- support
- res
- layout
- values-bg-rBG
- values-de-rDE
- values-es-rGQ
- values-es-rMX
- values-fr-rFR
- values-hi-rIN
- values-hu-rHU
- values-in-rID
- values-it-rIT
- values-ja-rJP
- values-ko-rKR
- values-pl-rPL
- values-pt-rBR
- values-ro-rRO
- values-ru-rRU
- values-sv-rSE
- values-tr-rTR
- values-uk-rUA
- values-zh-rTW
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
49 files changed
+366
-142
lines changedLines changed: 72 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | + | ||
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
16 | + | ||
15 | 17 | | |
16 | 18 | | |
17 | 19 | | |
| |||
23 | 25 | | |
24 | 26 | | |
25 | 27 | | |
28 | + | ||
29 | + | ||
30 | + | ||
31 | + | ||
26 | 32 | | |
27 | 33 | | |
28 | 34 | | |
| |||
73 | 79 | | |
74 | 80 | | |
75 | 81 | | |
76 | - | ||
82 | + | ||
77 | 83 | | |
78 | 84 | | |
79 | 85 | | |
| |||
92 | 98 | | |
93 | 99 | | |
94 | 100 | | |
95 | - | ||
96 | - | ||
97 | - | ||
98 | - | ||
99 | - | ||
100 | - | ||
101 | - | ||
102 | - | ||
101 | + | ||
102 | + | ||
103 | + | ||
104 | + | ||
105 | + | ||
106 | + | ||
107 | + | ||
108 | + | ||
109 | + | ||
110 | + | ||
111 | + | ||
112 | + | ||
113 | + | ||
114 | + | ||
115 | + | ||
116 | + | ||
103 | 117 | | |
104 | 118 | | |
105 | 119 | | |
| |||
166 | 180 | | |
167 | 181 | | |
168 | 182 | | |
183 | + | ||
184 | + | ||
185 | + | ||
186 | + | ||
187 | + | ||
188 | + | ||
189 | + | ||
190 | + | ||
191 | + | ||
192 | + | ||
193 | + | ||
194 | + | ||
195 | + | ||
196 | + | ||
197 | + | ||
198 | + | ||
199 | + | ||
200 | + | ||
201 | + | ||
202 | + | ||
203 | + | ||
204 | + | ||
205 | + | ||
206 | + | ||
207 | + | ||
208 | + | ||
209 | + | ||
210 | + | ||
211 | + | ||
212 | + | ||
213 | + | ||
214 | + | ||
215 | + | ||
216 | + | ||
217 | + | ||
218 | + | ||
219 | + | ||
220 | + | ||
221 | + | ||
222 | + | ||
223 | + | ||
224 | + | ||
225 | + | ||
226 | + | ||
227 | + | ||
228 | + | ||
229 | + | ||
230 | + | ||
231 | + | ||
169 | 232 | | |
Lines changed: 5 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | - | ||
14 | 13 | | |
15 | 14 | | |
16 | 15 | | |
| |||
35 | 34 | | |
36 | 35 | | |
37 | 36 | | |
38 | - | ||
37 | + | ||
39 | 38 | | |
40 | 39 | | |
41 | 40 | | |
| |||
47 | 46 | | |
48 | 47 | | |
49 | 48 | | |
50 | - | ||
51 | - | ||
49 | + | ||
52 | 50 | | |
53 | 51 | | |
54 | 52 | | |
55 | 53 | | |
54 | + | ||
55 | + | ||
56 | + | ||
56 | 57 | | |
57 | 58 | | |
58 | 59 | | |
| |||
Lines changed: 0 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | - | ||
7 | 6 | | |
8 | 7 | | |
9 | 8 | | |
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
13 | - | ||
14 | - | ||
15 | - | ||
16 | 12 | | |
17 | 13 | | |
18 | 14 | | |
19 | 15 | | |
20 | 16 | | |
21 | - | ||
22 | - | ||
23 | - | ||
24 | - | ||
25 | 17 | | |
26 | 18 | | |
27 | 19 | | |
| |||
Lines changed: 44 additions & 42 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | + | ||
34 | + | ||
35 | + | ||
33 | 36 | | |
34 | 37 | | |
35 | 38 | | |
36 | - | ||
37 | - | ||
38 | 39 | | |
39 | 40 | | |
40 | - | ||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
375 | 375 | | |
376 | 376 | | |
377 | 377 | | |
378 | - | ||
379 | - | ||
380 | - | ||
378 | + | ||
379 | + | ||
380 | + | ||
381 | + | ||
382 | + | ||
383 | + | ||
381 | 384 | | |
382 | - | ||
383 | - | ||
384 | - | ||
385 | + | ||
386 | + | ||
387 | + | ||
388 | + | ||
389 | + | ||
390 | + | ||
385 | 391 | | |
386 | 392 | | |
387 | 393 | | |
| |||
424 | 430 | | |
425 | 431 | | |
426 | 432 | | |
427 | - | ||
428 | - | ||
429 | - | ||
430 | - | ||
431 | - | ||
432 | - | ||
433 | - | ||
434 | - | ||
435 | - | ||
436 | - | ||
437 | - | ||
438 | - | ||
439 | - | ||
440 | - | ||
441 | - | ||
442 | - | ||
443 | - | ||
433 | + | ||
434 | + | ||
435 | + | ||
436 | + | ||
437 | + | ||
438 | + | ||
439 | + | ||
440 | + | ||
441 | + | ||
442 | + | ||
443 | + | ||
444 | 444 | | |
445 | 445 | | |
446 | 446 | | |
447 | 447 | | |
448 | - | ||
449 | - | ||
448 | + | ||
449 | + | ||
450 | 450 | | |
451 | - | ||
451 | + | ||
452 | 452 | | |
453 | - | ||
453 | + | ||
454 | 454 | | |
455 | - | ||
456 | - | ||
455 | + | ||
456 | + | ||
457 | 457 | | |
458 | - | ||
458 | + | ||
459 | 459 | | |
460 | 460 | | |
461 | + | ||
462 | + | ||
461 | 463 | | |
462 | 464 | | |
463 | 465 | | |
| |||
486 | 488 | | |
487 | 489 | | |
488 | 490 | | |
489 | - | ||
491 | + | ||
490 | 492 | | |
491 | 493 | | |
492 | 494 | | |
493 | 495 | | |
494 | - | ||
496 | + | ||
495 | 497 | | |
496 | 498 | | |
497 | 499 | | |
498 | 500 | | |
499 | - | ||
501 | + | ||
500 | 502 | | |
501 | - | ||
502 | - | ||
503 | - | ||
503 | + | ||
504 | + | ||
505 | + | ||
504 | 506 | | |
505 | 507 | | |
506 | 508 | | |
507 | 509 | | |
508 | - | ||
510 | + | ||
509 | 511 | | |
510 | - | ||
512 | + | ||
511 | 513 | | |
512 | - | ||
514 | + | ||
513 | 515 | | |
514 | 516 | | |
515 | 517 | | |
| |||
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | - | ||
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
| |||
64 | 63 | | |
65 | 64 | | |
66 | 65 | | |
67 | - | ||
66 | + | ||
67 | + | ||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | - | ||
77 | + | ||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | - | ||
20 | + | ||
21 | + | ||
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
0 commit comments