1

I've been looking for examples on how to animate two views (or fragments) left and right as is done in the Android Google+ app. I have not been successful.

I would like to be able to slide in - left to right - a fragment over another one, at command, and as a reaction to the user swiping the screen. The animation should follow the user's finger across the screen, allowing them to pause in the middle of the animation etc.

Does anyone know where to start on this sort of layout animation? Tips on how Google+ does it? I'd like any information we can dig up! I've been quite unsuccessful =\

Matthew Runo
  • 1,387
  • 3
  • 20
  • 43

2 Answers2

3

This is the best resource about the side menu, there is no code but a clear explanation on how to implement it:

Fly-in app menu

and this is a post on how to animate the action bar related to the side menu:

Slide action bar

Hope it will help.

Community
  • 1
  • 1
gwvatieri
  • 5,133
  • 1
  • 29
  • 29
0

Here is an implementation of the effect by Simon based on Cyril Mottier's Fly-in app menu. - Menu Drawer

Wesley
  • 1,808
  • 5
  • 31
  • 46