0

Is it possible to flip a view in ViewPager.Basically i want to put several views as in hompage and a view behind every view i.e user must be able to flip the view too.

Maxsteel
  • 1,922
  • 4
  • 30
  • 55

1 Answers1

1

Yes Very Much Possible.

You need Rotation Animation

Look here

How to make a smooth image rotation in Android?

and

http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/animation/Rotate3dAnimation.html

I used the above and implemented successfully what you are asking.

Look for its example in api demo of android

Community
  • 1
  • 1
Rohit Sharma
  • 13,787
  • 8
  • 57
  • 72
  • Yes but both the links point to flip part.I specifically want to flip my card that is a viewpager to show other side.How can i implement this? – Maxsteel May 07 '12 at 11:06
  • I used default gallery to show some cards which shows alphabets. a small i button on press flip the card 180 degree inside and brings the back of the card which has object name starting with the given alphabet – Rohit Sharma May 07 '12 at 11:09
  • apidemo project is given in android sdk itself. import that and see for animation examples in it. follow 3d rotation animation example. do the same they did to flip – Rohit Sharma May 07 '12 at 11:10