Commit 1656477
committed
Hide FAB on scroll + 168dp list padding so it never overlaps cards
- Add a RecyclerView scroll listener on the profile list: hide the docked
FAB on downward scroll, show it on upward scroll or when the list
settles (idle). Only acts in stable Stopped/Connected states so it
doesn't fight the FAB's connect/disconnect animation.
- Bump profile + route list bottom padding to 168dp (FAB occupies ~157dp
at 440dpi) so the last card always rests above the docked FAB and the
pinned stats bar, in both connected and disconnected states.
Verified on Android (Dracula-M3, connected): last card clears the FAB at
the scroll extent; FAB tucks away while scrolling.1 parent f18ad9a commit 1656477
3 files changed
Lines changed: 25 additions & 2 deletions
File tree
- app/src/main
- java/io/nekohasekai/sagernet/ui
- res/layout
Lines changed: 23 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1396 | 1396 | | |
1397 | 1397 | | |
1398 | 1398 | | |
| 1399 | + | |
| 1400 | + | |
| 1401 | + | |
| 1402 | + | |
| 1403 | + | |
| 1404 | + | |
| 1405 | + | |
| 1406 | + | |
| 1407 | + | |
| 1408 | + | |
| 1409 | + | |
| 1410 | + | |
| 1411 | + | |
| 1412 | + | |
| 1413 | + | |
| 1414 | + | |
| 1415 | + | |
| 1416 | + | |
| 1417 | + | |
| 1418 | + | |
| 1419 | + | |
| 1420 | + | |
| 1421 | + | |
1399 | 1422 | | |
1400 | 1423 | | |
1401 | 1424 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
0 commit comments