public interface Animation
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
|
void setDuration(long duration)
duration
- 单位为 msvoid setInterpolator(Interpolator interpolator)
interpolator
- void setAnimationListener(AnimationListener listener)
listener
- 参见 AnimationListener
long getDuration()
Interpolator getInterpolator()
AnimationListener getAnimationListener()