RotateAnimation
官方:http://developer.android.com/reference/android/view/animation/RotateAnimation.html
相关博客:http://blog.youkuaiyun.com/wf_zeng/article/details/9342623
类信息:public class RotateAnimation extends Animation
简介:用于控制旋转的动画对象。旋转动画在坐标轴中进行,可以指定旋转中心点,如果未制定,那么默认指定为View的(0,0)点,即视图左上角。
翻译:
公共方法:
1、 public RotateAnimation (Context context, AttributeSet attrs)
从资源文件中构造出RotateAnimation对象;
参数:context 应用上下文对象
2、 public RotateAnimation (float fromDegrees, float toDegrees)
构造RotateAnimation对象,并设定旋转角度的起始点fromDegrees与终点toDegrees。默认的旋转中心点(0,0);
3、 public RotateAnimation (float fromDegrees, float toDegrees, floatpivotX, float pivotY)
构造RotateAnimation对象,并设定旋转角度的起始点fromDegrees与终点toDegrees并设定旋转中心点(pivotX, pivotY);
4、 public RotateAnimation (float fromDegrees, float toDegrees, intpivotXType, float pivotXValue, int pivotYType, float pivotYValue)
构造RotateAnimation对象,并设定旋转角度的起始点fromDegrees与终点toDegrees并设定旋转中心点(pivotXValue, pivotYValue)。
pivotXType、pivotYType 指定pivotXValue、pivotYType如何进行插值。可以是Animation.ABSOLUTE, Animation.RELATIVE_TO_SELF, orAnimation.RELATIVE_TO_PARENT中的一个.
本文详细介绍Android中的RotateAnimation类,包括其构造方法及如何通过不同参数设置实现旋转动画效果。介绍了如何指定旋转的角度范围以及旋转中心点的位置。
213

被折叠的 条评论
为什么被折叠?



