public class AlphaAnimation extends Animation
Animation.AnimationListener
animationType, FILL_MODE_BACKWARDS, FILL_MODE_FORWARDS, INFINITE, RESTART, REVERSE
构造器和说明 |
---|
AlphaAnimation(float fromAlpha,
float toAlpha)
控制透明度的动画类
透明度范围[0,1], 1为不透明 |
限定符和类型 | 方法和说明 |
---|---|
protected java.lang.String |
getAnimationType() |
getFillMode, getRepeatCount, getRepeatMode, setAnimationListener, setDuration, setFillMode, setInterpolator, setRepeatCount, setRepeatMode
public AlphaAnimation(float fromAlpha, float toAlpha)
fromAlpha
- 起始透明度toAlpha
- 目标透明度protected java.lang.String getAnimationType()
getAnimationType
在类中 Animation