28

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.

Community
  • 1
  • 1
krunal shah
  • 16,089
  • 25
  • 97
  • 143

2 Answers2

18

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.

Community
  • 1
  • 1
DarkLeafyGreen
  • 69,338
  • 131
  • 383
  • 601
  • 4
    Sorry for that, I updated my answer ;) – DarkLeafyGreen Feb 12 '12 at 11:45
  • I have gone through Curl effect as well as flip effect in android where pages of a book are turned but what i need is turn effect on book means when we have a book with first and last cover as hard bound then the turning style will be different from curl and flip effect. So please can any one tell me how to implement this and any supporting links or tutorials or examples (are appreciated ) Thank you – ask4solutions Sep 27 '14 at 12:48
14

Checkout the Android Page Curl project:

It has some very nice code for both automated page flips (touch the screen and the page flip animation plays) as manual page flips where the flip actually follows your finger.

Stecya
  • 22,896
  • 10
  • 72
  • 102
NightWhistler
  • 326
  • 2
  • 7