Class FadeAnimation

    • Field Detail

      • DEFAULT_MAX_FADE

        public static int DEFAULT_MAX_FADE
      • maxFade

        public static int maxFade
        Change this will affect all fade animations until you reset it to DEFAULT_MAX_FADE.
        See Also:
        Toast
    • Method Detail

      • create

        public static FadeAnimation create​(Control c,
                                           boolean fadeIn,
                                           ControlAnimation.AnimationFinished animFinish,
                                           int totalTime)
        Creates a path animation, moving the control in a direction.
        Parameters:
        c - The control to be moved
        fadeIn - 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).