AI2 Component  (Version nb184)
com.google.appinventor.components.runtime.util.AnimationUtil Class Reference

Static Public Member Functions

static void ApplyAnimation (View view, String animation)
 
static void ApplyOpenScreenAnimation (Activity activity, String animType)
 
static void ApplyCloseScreenAnimation (Activity activity, String animType)
 

Detailed Description

This class supplies some support for pre-defined component animation.

For more information about animation on the Android platform, see the Android documentation on code.google.com.

Definition at line 24 of file AnimationUtil.java.

Member Function Documentation

◆ ApplyAnimation()

static void com.google.appinventor.components.runtime.util.AnimationUtil.ApplyAnimation ( View  view,
String  animation 
)
static

Animates a component (using pre-defined animation kinds).

Parameters
viewcomponent to animate
animationanimation kind

Definition at line 54 of file AnimationUtil.java.

◆ ApplyCloseScreenAnimation()

static void com.google.appinventor.components.runtime.util.AnimationUtil.ApplyCloseScreenAnimation ( Activity  activity,
String  animType 
)
static

Applies a specific animation for transitioning back a screen.

Parameters
activity- the form which is closing
animType- the animation type

Definition at line 121 of file AnimationUtil.java.

◆ ApplyOpenScreenAnimation()

static void com.google.appinventor.components.runtime.util.AnimationUtil.ApplyOpenScreenAnimation ( Activity  activity,
String  animType 
)
static

Applies a specific animation for transitioning to a new Screen.

Parameters
activity- the form which is calling another screen
animType- the animation type

Definition at line 81 of file AnimationUtil.java.


The documentation for this class was generated from the following file: