1 Answers
Answers 1
Have you tried adding app:behavior_overlapTop="50dp"
to your scrolling view? (This is the default behavior. Code can be found here.)
Apparently, it should support that attribute to make the scrolling view overlap your app bar. Start by implementing the square collapsing toolbar as you can find in many other guides and then set that parameter. If that does not work, you could write your own Behavior
I guess, inspiring from the one I linked you (which is the default AppBarLayout
behavior that allow the coordinator layout to collapse the top part. To make the image not square you need to use a semi-transparent image or edit it by code.
0 comments:
Post a Comment