2

Google uses a very neat activity/view slider in many of their apps. I'm wondering if you know what it is called? If it is available in any of the open sources apps? Or if you have an idea how to build one?

It works as a tabbed pane showing just the current, the previous and the next tab. Swiping left or right on the pane, or in the activity, moves you between the views with a lovely, coordinated animation.

enter image description here enter image description here

Thomas Ahle
  • 30,774
  • 21
  • 92
  • 114
  • possible duplicate of [What is this Android Widget called?](http://stackoverflow.com/questions/5568445/what-is-this-android-widget-called) – sclv Jul 08 '11 at 14:00

2 Answers2

3

Don't know what it's officially called. However pakerfeldt has made an open source version called viewflow which is available on github: https://github.com/pakerfeldt/android-viewflow

David Olsson
  • 8,085
  • 3
  • 30
  • 38
  • I found a description here: http://pakerfeldt.com/horizontal-view-flow-with-android/ I won't need the Adapter concept though, but I'll have a good look at the source. Thanks. – Thomas Ahle Jul 08 '11 at 12:55
0

After further research I found out they are called Workspaces. They are used in the Google IO 2011 Schedule app, where the code is available.

Update: Google has now released a standardized implementation.

Thomas Ahle
  • 30,774
  • 21
  • 92
  • 114