Commit a7eb702
committed
Refactor edge-to-edge handling and UI adjustments
This commit introduces several changes:
- Removes horizontal margins in `ad_about.xml`.
- Simplifies edge-to-edge implementation in `MainActivity.java` by directly using `WindowCompat.enableEdgeToEdge` when `useRail` is true, removing the custom `EdgeToEdgeDelegate` call for this case.
- Adds an assertion for `binding.progressBar` in `MainActivity.java` before setting its visibility.
- Implements `onMenuOpened` in `MainActivity.java` to ensure icons are visible in the `MenuBuilder`.
- Acknowledges FIXME comments in `EdgeToEdgeDelegate.java` related to deprecated methods for padding and margins.1 parent edec758 commit a7eb702
File tree
3 files changed
+19
-11
lines changed- app/src/main
- java/com/d4rk/androidtutorials/java
- ui/screens/main
- utils
- res/layout
3 files changed
+19
-11
lines changedLines changed: 16 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| 12 | + | |
11 | 13 | | |
12 | 14 | | |
13 | 15 | | |
| |||
18 | 20 | | |
19 | 21 | | |
20 | 22 | | |
| 23 | + | |
21 | 24 | | |
| 25 | + | |
22 | 26 | | |
23 | 27 | | |
24 | 28 | | |
| |||
207 | 211 | | |
208 | 212 | | |
209 | 213 | | |
| 214 | + | |
210 | 215 | | |
211 | | - | |
212 | 216 | | |
213 | 217 | | |
214 | 218 | | |
215 | 219 | | |
216 | | - | |
| 220 | + | |
217 | 221 | | |
218 | | - | |
219 | 222 | | |
220 | 223 | | |
221 | 224 | | |
| |||
323 | 326 | | |
324 | 327 | | |
325 | 328 | | |
| 329 | + | |
326 | 330 | | |
327 | 331 | | |
328 | 332 | | |
| |||
364 | 368 | | |
365 | 369 | | |
366 | 370 | | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
367 | 380 | | |
368 | 381 | | |
369 | 382 | | |
| |||
Lines changed: 3 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | 26 | | |
31 | 27 | | |
32 | 28 | | |
| |||
190 | 186 | | |
191 | 187 | | |
192 | 188 | | |
193 | | - | |
| 189 | + | |
194 | 190 | | |
195 | 191 | | |
196 | 192 | | |
| |||
215 | 211 | | |
216 | 212 | | |
217 | 213 | | |
218 | | - | |
| 214 | + | |
219 | 215 | | |
220 | | - | |
| 216 | + | |
221 | 217 | | |
222 | 218 | | |
223 | 219 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | 12 | | |
14 | 13 | | |
15 | 14 | | |
| |||
0 commit comments