Profile cover photo
Profile photo
Richard Jesus
400 followers -
Google Developer Expert in UX/UI and gearhead
Google Developer Expert in UX/UI and gearhead

400 followers
About
Communities and Collections
View all
Posts

Post has attachment
PhotoPhotoPhoto
1/22/18
3 Photos - View album
Add a comment...

Post has attachment
3 Day Product Sprint :)
PhotoPhotoPhotoPhotoPhoto
1/22/18
10 Photos - View album
Add a comment...

Post has attachment
Check this out!
Add a comment...

Post has attachment

Post has attachment
Add a comment...

Post has shared content
Collapsing Toolbar Title

I finally got around to tidying up my collapsing Toolbar title code today. It's pretty simple to use. 

Just wrap your Toolbar in a CollapsingTitleLayout. From then on, you should update the title via setTitle(), and change the scroll position as needed via setScrollOffset().

There are improvements to be made in the API and text layout, but it's pretty usable now.

One thing to note, the sample image has the background collapsing with the title. This is not provided by this layout, you'll need to do it yourself. It does clip the background though.

Code: https://gist.github.com/chrisbanes/91ac8a20acfbdc410a68

#AndroidDev   #Material  
Animated Photo
Add a comment...

Post has attachment

Post has attachment
Add a comment...

Post has attachment
I'm the proud owner of a new car! Can you beat me in my NISSAN SILVIA (S15)?
Add a comment...

Post has attachment
E você que ícone usa?
Add a comment...
Wait while more posts are being loaded