Example usage for Java android.view.animation Animation fields, constructors, methods, implement or subclass
The text is from its open source code.
int | INFINITE Repeat the animation indefinitely. |
int | RESTART When the animation reaches the end and the repeat count is INFINTE_REPEAT or a positive value, the animation restarts from the beginning. |
int | REVERSE When the animation reaches the end and the repeat count is INFINTE_REPEAT or a positive value, the animation plays backward (and then forward again). |
int | START_ON_FIRST_FRAME Can be used as the start time to indicate the start time should be the current time when #getTransformation(long,Transformation) is invoked for the first animation frame. |
int | ABSOLUTE The specified dimension is an absolute number of pixels. |
int | RELATIVE_TO_SELF The specified dimension holds a float and should be multiplied by the height or width of the object being animated. |
int | RELATIVE_TO_PARENT The specified dimension holds a float and should be multiplied by the height or width of the parent of the object being animated. |
int | ZORDER_TOP Requests that the content being animated be forced on top of all other content for the duration of the animation. |
Animation() Creates a new animation with a duration of 0ms, the default interpolator, with fillBefore set to true and fillAfter set to false |
void | cancel() Cancel the animation. |
Class> | getClass() Returns the runtime class of this Object . |
long | getDuration() How long this animation should last |
Interpolator | getInterpolator() Gets the acceleration curve type for this animation. |
long | getStartOffset() When this animation should start, relative to StartTime |
long | getStartTime() When this animation should start. |
boolean | hasEnded() Indicates whether this animation has ended or not. |
boolean | hasStarted() Indicates whether this animation has started or not. |
void | initialize(int width, int height, int parentWidth, int parentHeight) Initialize this animation with the dimensions of the object being animated as well as the objects parents. |
boolean | isInitialized() Whether or not the animation has been initialized. |
void | reset() Reset the initialization state of this animation. |
void | scaleCurrentDuration(float scale) How much to scale the duration by. |
void | setAnimationListener(AnimationListener listener) Binds an animation listener to this animation. |
void | setDuration(long durationMillis) How long this animation should last. |
void | setFillAfter(boolean fillAfter) If fillAfter is true, the transformation that this animation performed will persist when it is finished. |
void | setFillBefore(boolean fillBefore) If fillBefore is true, this animation will apply its transformation before the start time of the animation. |
void | setFillEnabled(boolean fillEnabled) If fillEnabled is true, the animation will apply the value of fillBefore. |
void | setInterpolator(Interpolator i) Sets the acceleration curve for this animation. |
void | setInterpolator(Context context, @AnimRes @InterpolatorRes int resID) Sets the acceleration curve for this animation. |
void | setRepeatCount(int repeatCount) Sets how many times the animation should be repeated. |
void | setRepeatMode(int repeatMode) Defines what this animation should do when it reaches the end. |
void | setStartOffset(long startOffset) When this animation should start relative to the start time. |
void | setStartTime(long startTimeMillis) When this animation should start. |
void | start() Convenience method to start the animation the first time #getTransformation(long,Transformation) is invoked. |
void | startNow() Convenience method to start the animation at the current time in milliseconds. |