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)
AnimationsetDuration in interface Animationduration - 单位为 mspublic void setInterpolator(Interpolator interpolator)
AnimationsetInterpolator in interface Animationpublic void setAnimationListener(AnimationListener listener)
AnimationsetAnimationListener in interface Animationlistener - 参见 AnimationListenerpublic long getDuration()
AnimationgetDuration in interface Animationpublic Interpolator getInterpolator()
AnimationgetInterpolator in interface Animationpublic AnimationListener getAnimationListener()
AnimationgetAnimationListener in interface Animation