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.
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.
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.
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.
© 2022 - 2024 — McMap. All rights reserved.