java.lang.Object | |
↳ | android.view.animation.AnimationUtils |
Defines common utilities for working with animations.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the current animation time in milliseconds.
| |||||||||||
Loads an
Animation object from a resource | |||||||||||
Loads an
Interpolator object from a resource | |||||||||||
Make an animation for objects becoming visible.
| |||||||||||
Make an animation for objects becoming visible.
| |||||||||||
Make an animation for objects becoming invisible.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class java.lang.Object
|
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()
).
Loads an Animation
object from a resource
context | Application context used to access resources |
---|---|
id | The resource id of the animation to load |
Resources.NotFoundException | when the animation cannot be loaded |
---|
Loads an Interpolator
object from a resource
context | Application context used to access resources |
---|---|
id | The resource id of the animation to load |
Resources.NotFoundException |
---|
Resources.NotFoundException |
---|
Make an animation for objects becoming visible. Uses a slide and fade effect.
c | Context for loading resources |
---|---|
fromLeft | is the object to be animated coming from the left |
Make an animation for objects becoming visible. Uses a slide up and fade effect.
c | Context for loading resources |
---|
Make an animation for objects becoming invisible. Uses a slide and fade effect.
c | Context for loading resources |
---|---|
toRight | is the object to be animated exiting to the right |