public class RotateAnimation extends Animation
Animation.AnimationListener, Animation.RepeatMode
bdAnimation
Constructor and Description |
---|
RotateAnimation(float fromDegrees,
float toDegrees) |
Modifier and Type | Method and Description |
---|---|
void |
cancel()
取消 Marker 动画
|
void |
setAnimationListener(Animation.AnimationListener animationListener)
设置 Marker 动画监听
|
void |
setDuration(long duration)
设置 Marker 动画执行时间
|
void |
setInterpolator(Interpolator interpolator)
设置 Marker 动画插值器
|
void |
setRepeatCount(int repeatCount)
设置 Marker 动画重复次数
|
void |
setRepeatMode(Animation.RepeatMode repeatMode)
设置 Marker 动画重复模式
|
public void setAnimationListener(Animation.AnimationListener animationListener)
setAnimationListener
in class Animation
animationListener
- Marker 动画监听public void setDuration(long duration)
setDuration
in class Animation
duration
- Marker 动画执行时间public void setInterpolator(Interpolator interpolator)
setInterpolator
in class Animation
interpolator
- Marker 动画插值器 (与系统动画插值器一致)public void setRepeatMode(Animation.RepeatMode repeatMode)
repeatMode
- 默认为 RepeatMode.RESTARTpublic void setRepeatCount(int repeatCount)
repeatCount
- 默认为0; -1代表无限循环动画