Commit 6254db4
authored
Fixes #82.
By default, the appbar starts as not lifted, then it's lifted on scroll.
That's why the scrollable content is not beneath the toolbar as seen in
#82. Our use case doesn't require appbar lifting, so we can safely
disable this feature, making the toolbar be permanently lifted above the
scrollable content.
This would likely be a bug in the material-components library, which
doesn't properly handle the edge-to-edge enforcement since Android 15.
NOTE: whereas disabling lifting feature fixes the view drawing order
(aka Z order), for a better UI, we also need to disable the scrim
background animation in Expressive Design (enabled by default since
Android 16), otherwise we'll see for a moment the scrollable content
through the AppBarLayout.
Signed-off-by: iusmac <[email protected]>
1 parent 8b44fff commit 6254db4
File tree
2 files changed
+17
-5
lines changed- res/values
- src/com/github/iusmac/sevensim/ui/components
2 files changed
+17
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
Lines changed: 7 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
38 | | - | |
39 | 37 | | |
40 | 38 | | |
41 | 39 | | |
| |||
58 | 56 | | |
59 | 57 | | |
60 | 58 | | |
61 | | - | |
62 | | - | |
63 | | - | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
64 | 63 | | |
65 | 64 | | |
66 | 65 | | |
| |||
84 | 83 | | |
85 | 84 | | |
86 | 85 | | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
87 | 89 | | |
88 | 90 | | |
89 | 91 | | |
| |||
0 commit comments