android.view.animation.AnimationUtils
Defines common utilities for working with animations.
Summary
Public Constructors
Public Methods
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait
Details
Public Constructors
Public Methods
public
static
long
currentAnimationTimeMillis()
Returns the current animation time in milliseconds. This time should be used when invoking
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
currentTimeMillis()).
Returns
- the current animation time in milliseconds
public
static
Animation
loadAnimation(Context context, int id)
Loads an
Animation object from a resource
Parameters
context
| Application context used to access resources |
id
| The resource id of the animation to load |
Returns
- The animation object reference by the specified id
public
static
Interpolator
loadInterpolator(Context context, int id)
Loads an
Interpolator object from a resource
Parameters
context
| Application context used to access resources |
id
| The resource id of the animation to load |
Returns
- The animation object reference by the specified id
public
static
Animation
makeInAnimation(Context c, boolean fromLeft)
Make an animation for objects becoming visible. Uses a slide and fade
effect.
Parameters
c
| Context for loading resources |
fromLeft
| is the object to be animated coming from the left |
public
static
Animation
makeInChildBottomAnimation(Context c)
Make an animation for objects becoming visible. Uses a slide up and fade
effect.
Parameters
c
| Context for loading resources |
public
static
Animation
makeOutAnimation(Context c, boolean toRight)
Make an animation for objects becoming invisible. Uses a slide and fade
effect.
Parameters
c
| Context for loading resources |
toRight
| is the object to be animated exiting to the right |