How to do page flip/turn/curl effect in android

69,723

Solution 1

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.

Solution 2

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.

Share:
69,723
krunal shah
Author by

krunal shah

CTO at @Thirdrocktechno @Quick_Capture

Updated on February 14, 2020

Comments

  • krunal shah
    krunal shah over 4 years

    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.