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

2

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.

Orpheus answered 1/10, 2010 at 12:27 Comment(0)
P
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.

Pianola answered 2/10, 2010 at 7:10 Comment(2)
Sorry for that, I updated my answer ;)Pianola
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 youFoment
O
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.

Oliver answered 14/2, 2012 at 8:36 Comment(1)
Is it possible to apply curl effect to viewpager. If yes how? Your guidance is important to me. Thanks!!!Hoofer

© 2022 - 2024 — McMap. All rights reserved.