public abstract class BaseAnimation extends java.lang.Object implements Animation
Constructor and Description |
---|
BaseAnimation() |
Modifier and Type | Method and Description |
---|---|
AnimationListener |
getAnimationListener()
获取动画监听
|
long |
getDuration()
获取动画时长
|
Interpolator |
getInterpolator()
获取拦截器
|
void |
setAnimationListener(AnimationListener listener)
设置动画的状态回调
|
void |
setDuration(long duration)
设置动画的持续时间
|
void |
setInterpolator(Interpolator interpolator)
设置动画播放进度的拦截器
具体参见 @see Interpolator
|
public void setDuration(long duration)
Animation
setDuration
in interface Animation
duration
- 单位为 mspublic void setInterpolator(Interpolator interpolator)
Animation
setInterpolator
in interface Animation
public void setAnimationListener(AnimationListener listener)
Animation
setAnimationListener
in interface Animation
listener
- 参见 AnimationListener
public long getDuration()
Animation
getDuration
in interface Animation
public Interpolator getInterpolator()
Animation
getInterpolator
in interface Animation
public AnimationListener getAnimationListener()
Animation
getAnimationListener
in interface Animation