017_RotateAnimation 翻译学习

来源:互联网 发布:淘宝卖家如何拉客户端 编辑:程序博客网 时间:2024/05/29 15:30

RotateAnimation

官方:http://developer.android.com/reference/android/view/animation/RotateAnimation.html

相关博客:http://blog.csdn.net/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中的一个.

 

0 0