怎么办翻页/转/袅袅的Android效果 [英] How to do page flip/turn/curl effect in android
问题描述
可能重复:
实现页面卷曲在Android?
怎么办翻页/车削或卷曲动画的android?是有可能与cocos2d的。如果你知道,请提供任何链接或例子。
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.
推荐答案
您可以使用ViewFlipper视图之间翻转。 <一href="http://developer.android.com/reference/android/widget/ViewFlipper.html">http://developer.android.com/reference/android/widget/ViewFlipper.html
You can use ViewFlipper to flip between views. http://developer.android.com/reference/android/widget/ViewFlipper.html
简单ViewAnimator,将两个或多个视图之间进行动画的 已经被添加到它。只有一个孩子显示的时间。如果 要求,能自动每个孩子之间的定期翻转 间隔。
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.
有可以分配不同的动画。 <一href="http://www.google.de/#sclient=psy-ab&hl=de&source=hp&q=android+viewflipper+example&pbx=1&oq=android+view+flipper+e&aq=0s&aqi=g-s1&aql=&gs_sm=3&gs_upl=962l3519l0l4505l22l19l0l2l2l0l207l1858l11.7.1l21l0&bav=on.2,or.r_gc.r_pw.r_cp.,cf.osb&fp=aff6c11295b9277b&biw=1920&bih=938">See这里的范例还是在这里SO 。
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.
这篇关于怎么办翻页/转/袅袅的Android效果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!