|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectandroid.view.animation.AnimationUtils
public class AnimationUtils
Defines common utilities for working with animations.
| Constructor Summary | |
|---|---|
AnimationUtils()
|
|
| Method Summary | |
|---|---|
static long |
currentAnimationTimeMillis()
Returns the current animation time in milliseconds. |
static Animation |
loadAnimation(Context context,
int id)
Loads an Animation object from a resource |
static Interpolator |
loadInterpolator(Context context,
int id)
Loads an Interpolator object from a resource |
static LayoutAnimationController |
loadLayoutAnimation(Context context,
int id)
|
static Animation |
makeInAnimation(Context c,
boolean fromLeft)
Make an animation for objects becoming visible. |
static Animation |
makeInChildBottomAnimation(Context c)
Make an animation for objects becoming visible. |
static Animation |
makeOutAnimation(Context c,
boolean toRight)
Make an animation for objects becoming invisible. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AnimationUtils()
| Method Detail |
|---|
public static long currentAnimationTimeMillis()
Animation.setStartTime(long). Refer to SystemClock for more
information about the different available clocks. The clock used by this method is
not the "wall" clock (it is not System.currentTimeMillis()).
SystemClock
public static Animation loadAnimation(Context context,
int id)
throws Resources.NotFoundException
Animation object from a resource
context - Application context used to access resourcesid - The resource id of the animation to load
Resources.NotFoundException - when the animation cannot be loaded
public static LayoutAnimationController loadLayoutAnimation(Context context,
int id)
throws Resources.NotFoundException
Resources.NotFoundException
public static Animation makeInAnimation(Context c,
boolean fromLeft)
c - Context for loading resourcesfromLeft - is the object to be animated coming from the left
public static Animation makeOutAnimation(Context c,
boolean toRight)
c - Context for loading resourcestoRight - is the object to be animated exiting to the right
public static Animation makeInChildBottomAnimation(Context c)
c - Context for loading resources
public static Interpolator loadInterpolator(Context context,
int id)
throws Resources.NotFoundException
Interpolator object from a resource
context - Application context used to access resourcesid - The resource id of the animation to load
Resources.NotFoundException
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||