开发者

How to set 3d flip animation for child of gridview

i am working on animation, i want to give animation to the child view of costume grid view. and tha开发者_开发知识库t animation like 3d Transition for chile(image view) of android.

I am using the concept is as per http://www.inter-fuser.com/2009/08/android-animations-3d-flip.html.

But i can not able to animate the imageview of gridview.

Please help me.


You have to apply setStaticTransformationsEnabled(true); at the constructor of your custom GridView. Then apply the transformations at the protected boolean getChildStaticTransformation(View child, Transformation t) and return true to that overriden function


Since you are talking about 3D, i guess probably you should take a look at RenderScript

and openGL.

Regarding Renderscript,tutorial are at Part-I and Part-II

For Best example for the usage of renderscript is Youtube and Books app for Honeycomb 3.0 and above.


The flip animation in your link doesn't produce believable 3D flips. A simple rotation on the y-axis isn't sufficient. The zoom effect is also needed to create that nice iOS flip feel. For that, take a look at this example: https://code.google.com/p/android-3d-flip-view-transition.

There is also a video here: http://youtu.be/52mXHqX9f3Y

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜