public class FadeAnimation extends ControlAnimation
ControlAnimation.AnimationFinished
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_MAX_FADE |
static int |
maxFade
Change this will affect all fade animations until you reset it to DEFAULT_MAX_FADE.
|
c, delayAfterFinish, executedTime, releaseScreenShot, totalTime, useOffscreen
Modifier and Type | Method and Description |
---|---|
protected void |
animate() |
static FadeAnimation |
create(Control c,
boolean fadeIn,
ControlAnimation.AnimationFinished animFinish,
int totalTime)
Creates a fade animation, fading in or out the given control
|
void |
start() |
computeSpeed, setAnimationFinishedAction, stop, then, updateListenerTriggered, with
public static int DEFAULT_MAX_FADE
public static int maxFade
Toast
public void start()
start
in class ControlAnimation
protected void animate()
animate
in class ControlAnimation
public static FadeAnimation create(Control c, boolean fadeIn, ControlAnimation.AnimationFinished animFinish, int totalTime)
c
- The control to be fadedfadeIn
- True will make the control appear, false will make it disappear.animFinish
- An interface method to be called when the animation finished, or null if none.totalTime
- The total time in millis that the animation will take, or -1 to use the default value (800ms).