public class AnimationSet extends Animation
glAnimation, mAnimationListener
Constructor and Description |
---|
AnimationSet(boolean shareInterpolator)
创建一个AnimationSet
|
Modifier and Type | Method and Description |
---|---|
boolean |
addAnimation(Animation animation)
添加一个动画
|
void |
cleanAnimation()
清除所有动画
|
void |
setDuration(long duration)
设置动画的持续时间
|
void |
setInterpolator(android.view.animation.Interpolator interpolatoe)
设置动画播放进度的拦截器
具体参见 @see Interpolator
|
setAnimationListener
public AnimationSet(boolean shareInterpolator)
shareInterpolator
- 是否共享解释器public void setDuration(long duration)
setDuration
in class Animation
duration
- 单位为 mspublic void setInterpolator(android.view.animation.Interpolator interpolatoe)
setInterpolator
in class Animation
public boolean addAnimation(Animation animation)
animation
- public void cleanAnimation()