Skip to content

Conversation

@iusmac
Copy link
Owner

@iusmac iusmac commented Oct 4, 2025

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.

@iusmac iusmac linked an issue Oct 4, 2025 that may be closed by this pull request
…h toolbar

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 <iusico.maxim@libero.it>
@iusmac iusmac force-pushed the 82-schedule-items-dont-scroll-beneath-toolbar branch from 63de0fc to eecd576 Compare October 5, 2025 12:46
@iusmac iusmac merged commit 6254db4 into 16.0-dev Oct 5, 2025
1 check passed
@iusmac iusmac deleted the 82-schedule-items-dont-scroll-beneath-toolbar branch October 5, 2025 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Schedule items don't scroll beneath toolbar

2 participants