Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to do page flip/turn/curl effect in android [duplicate]

Possible Duplicate:
Implement page curl on android?

How to do page flipping/turning or curl animation in android ? Is is possible with cocos2d. Please provide any links or example if you know.

like image 247
krunal shah Avatar asked Oct 01 '10 12:10

krunal shah


1 Answers

You can use ViewFlipper to flip between views. http://developer.android.com/reference/android/widget/ViewFlipper.html

Simple ViewAnimator that will animate between two or more views that have been added to it. Only one child is shown at a time. If requested, can automatically flip between each child at a regular interval.

It is possible to assign different animations. See here for examples or here on SO.

But it depends on what actually you want to flip and animate. You can draw different shapes and drag or animate them.

like image 77
UpCat Avatar answered Sep 19 '22 14:09

UpCat