2、值,矩阵是用来做平移,旋转和缩放动画的,而alpha值是用来做alpha动画的,要实现3D旋转动画我们需要继承自Animation类来实现,我们需要重载getTransformation和applyTransformation,在getTransformation中Animation会根据动画的属性来产生一系列的差值点,然后将这些差值点传给applyTransformation,这个函数将根据这些点来生成不同的Transformation。下面是具体实现:1.public class Rotate3dAnimation extends Animation
3、{ 2. //开始角度 3. private final float mFromDegrees; 4. //结束角度 5. private final float mToDegrees; 6. //中心点 7. private final float mCenterX; 8. private final float mCenterY; 9. private final float mDepthZ; 10. //是否需要扭曲 11. private final boolean mReverse; 1