Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Scrolling Effect (Google I/O app)

I'm trying to reproduce the effect of both versions of the Google I/O 2014 app, the first release one that fade while scrolling, and the updated one that stretch when gets near the toolbar

Google I/O Toolbar

I downloaded the source of the app but this effect ins't on the public source, so i'm trying to find out how to do it by self

What i already did was create a custom view, which animate the translationY from actionbarHeight to 0, and vice-versa, but it don't looks the best approach, does anyone know a better approach?

like image 513
Yuri Heupa Avatar asked Jan 22 '15 22:01

Yuri Heupa


1 Answers

You can use the new design library.

Here is some examples:

https://github.com/liuguangqiang/AndroidDesignSupportSample

like image 61
AndroidRuntimeException Avatar answered Oct 06 '22 06:10

AndroidRuntimeException