I am trying to make a collapsing toolbar with Material3. I want the AppBar to layout under the statusbar so that when it collapses the content will scroll under the statusbar. I've added padding to the AppBar but when it is collapsed it doesn't collapse the padding. Is there a way to collapse the padding on the AppBar as well? Thanks!
Have you considered embedding an CollapsingToolBar View with the AndroidView Composable?
r
Rob
01/09/2022, 7:35 PM
My goals are to do everything in Compose because this is my learning side project.
I can probably do it with MotionLayout with a lot more control but they already have some scroll behaviors which are like 90% of what I want.
c
Colton Idle
01/10/2022, 5:56 AM
Does it work with material2? Just asking because if it works with 2 and not 3, then its probably a bug because material3 is known to have a bunch of issues + missing a bunch of stuff. so i would tread carefully with material3 stuff imo.
If you knew all of that already. then please ignore 🙃