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

我的未来我决定 提交于 2019-11-26 08:09:34

问题


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.


回答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.




回答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.



来源:https://stackoverflow.com/questions/3839117/how-to-do-page-flip-turn-curl-effect-in-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!