Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set 3d flip animation for child of gridview

Tags:

android

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.

like image 668
amity Avatar asked Oct 01 '11 07:10

amity


1 Answers

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

like image 79
weakwire Avatar answered Oct 12 '22 23:10

weakwire