Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What View Component does the Google Plus App (Stream) use?

if you use the Google Plus App on Android and switch to the Stream, you get a view where you can swipe to the left and right between the All circles/Incoming/Nearby-Stream. What view component is used for this? Is this a standard Android component? Or where can I find democode how i can build such a view component?

like image 508
Dave4711 Avatar asked Jul 23 '11 19:07

Dave4711


2 Answers

You should take a look at the ViewPager from Android Compatibility Package for the desired widget/swipe navigation. Find more about it here http://developer.android.com/sdk/compatibility-library.html

Also, checkout this recently posted tutorial and some sample code on ViewPager by Richard: http://geekyouup.blogspot.com/2011/07/viewpager-example-from-paug.html

like image 120
Anirudh Avatar answered Nov 03 '22 21:11

Anirudh


It is a combination of a ViewPager together with an indicator for where you are currently and where you can go swiping left and right.

A sample of how this can be done along with code you can use in your own apps may for example be found here. I've played with this code a little and it works pretty well.

like image 27
Thorsten Dittmar Avatar answered Nov 03 '22 20:11

Thorsten Dittmar