public class RotateAnimation extends Animation
glAnimation, mAnimationListener
Constructor and Description |
---|
RotateAnimation(float fromdegree,
float todegree,
float pivotx,
float pivoty,
float pivotz)
构造函数
|
Modifier and Type | Method and Description |
---|---|
void |
setDuration(long duration)
设置动画的持续时间
|
void |
setInterpolator(android.view.animation.Interpolator interpolatoe)
设置动画播放进度的拦截器
具体参见 @see Interpolator
|
setAnimationListener
public RotateAnimation(float fromdegree, float todegree, float pivotx, float pivoty, float pivotz)
fromdegree
- 初始角度todegree
- 目标角度pivotx
- 设置x轴坐标pivoty
- 设置y轴坐标pivotz
- 设置z轴坐标public void setDuration(long duration)
setDuration
in class Animation
duration
- 单位为 mspublic void setInterpolator(android.view.animation.Interpolator interpolatoe)
setInterpolator
in class Animation