public class AlphaAnimation extends Animation
glAnimation, mAnimationListener
Constructor and Description |
---|
AlphaAnimation(float fromAlpha,
float toAlpha)
构造一个动画对象
|
Modifier and Type | Method and Description |
---|---|
void |
setDuration(long duration)
设置动画的持续时间
|
void |
setInterpolator(android.view.animation.Interpolator interpolatoe)
设置动画播放进度的拦截器
具体参见 @see Interpolator
|
setAnimationListener
public AlphaAnimation(float fromAlpha, float toAlpha)
fromAlpha
- 起始的alpha值取值范围为 [0.0 ~ 1.0]toAlpha
- 目标的alpha值取值范围为 [0.0 ~ 1.0]public void setDuration(long duration)
setDuration
in class Animation
duration
- 单位为 mspublic void setInterpolator(android.view.animation.Interpolator interpolatoe)
setInterpolator
in class Animation