amity
amity

Reputation: 960

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 that 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.

Upvotes: 8

Views: 4516

Answers (3)

Ephraim
Ephraim

Reputation: 2244

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

Upvotes: 0

Ads
Ads

Reputation: 6691

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.

Upvotes: 0

weakwire
weakwire

Reputation: 9300

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

Upvotes: 2

Related Questions