Thursday, March 10, 2016

How to create bended Collapsing Toolbar Layout?

Leave a Comment

How can we create a collapsing toolbar layout like Yahoo News Digest application ?

enter image description here

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.

If You Enjoyed This, Take 5 Seconds To Share It

0 comments:

Post a Comment