Home | History | Annotate | Download | only in animation

Lines Matching defs:Animation

17 package android.view.animation;
33 * Abstraction for an Animation that can be applied to Views, Surfaces, or
34 * other objects. See the {@link android.view.animation animation package
37 public abstract class Animation implements Cloneable {
39 * Repeat the animation indefinitely.
44 * When the animation reaches the end and the repeat count is INFINTE_REPEAT
45 * or a positive value, the animation restarts from the beginning.
50 * When the animation reaches the end and the repeat count is INFINTE_REPEAT
51 * or a positive value, the animation plays backward (and then forward again).
58 * first animation frame. This can is useful for short animations.
87 * content for the duration of the animation.
93 * content for the duration of the animation.
98 // Animation and its subclasses to be compile-time initialized.
101 = SystemProperties.getBoolean("log.closeguard.Animation", false);
105 * Set by {@link #getTransformation(long, Transformation)} when the animation ends.
110 * Set by {@link #getTransformation(long, Transformation)} when the animation starts.
115 * Set by {@link #getTransformation(long, Transformation)} when the animation repeats
122 * indicates the animation was successfully initialized and can be played.
127 * Indicates whether the animation transformation should be applied before the
128 * animation starts. The value of this variable is only relevant if mFillEnabled is true;
134 * Indicates whether the animation transformation should be applied after the
135 * animation ends.
145 * The time in milliseconds at which the animation must start;
150 * The delay in milliseconds after which the animation must start. When the
151 * start offset is > 0, the start time of the animation is startTime + startOffset.
156 * The duration of one animation cycle in milliseconds.
161 * The number of times the animation must repeat. By default, an animation repeats
167 * Indicates how many times the animation was repeated.
172 * The behavior of the animation when it repeats. The repeat mode is either
179 * The interpolator used by the animation to smooth the movement.
184 * The animation listener to be notified when the animation starts, ends or repeats.
189 * Desired Z order mode during animation.
194 * Desired background color behind animation.
199 * scalefactor to apply to pivot points, etc. during animation. Subclasses retrieve the
225 * Creates a new animation with a duration of 0ms, the default interpolator, with
228 public Animation() {
233 * Creates a new animation whose parameters come from the specified context and
237 * @param attrs the set of attributes holding the animation parameters
239 public Animation(Context context, AttributeSet attrs) {
240 TypedArray a = context.obtainStyledAttributes(attrs, com.android.internal.R.styleable.Animation);
270 protected Animation clone() throws CloneNotSupportedException {
271 final Animation animation = (Animation) super.clone();
272 animation.mPreviousRegion = new RectF();
273 animation.mRegion = new RectF();
274 animation.mTransformation = new Transformation();
275 animation.mPreviousTransformation = new Transformation();
276 return animation;
280 * Reset the initialization state of this animation.
296 * Cancel the animation. Cancelling an animation invokes the animation
297 * listener, if set, to notify the end of the animation.
299 * If you cancel an animation manually, you must call {@link #reset()}
300 * before starting the animation again.
312 // Make sure we move the animation to the end
329 * Whether or not the animation has been initialized.
331 * @return Has this animation been initialized.
339 * Initialize this animation with the dimensions of the object being
340 * animated as well as the objects parents. (This is to support animation
368 mListener.onAnimationStart(Animation.this);
375 mListener.onAnimationRepeat(Animation.this);
382 mListener.onAnimationEnd(Animation.this);
391 * Sets the acceleration curve for this animation. The interpolator is loaded as
403 * Sets the acceleration curve for this animation. Defaults to a linear
414 * When this animation should start relative to the start time. This is most
418 * @param startOffset When this Animation should start, in milliseconds from
427 * How long this animation should last. The duration cannot be negative.
437 throw new IllegalArgumentException("Animation duration cannot be negative");
443 * Ensure that the duration that this animation will run is not longer
448 * @param durationMillis The maximum duration the animation is allowed
476 // Figure out how many times to do the animation. Subtract 1 since
496 * When this animation should start. When the start time is set to
497 * {@link #START_ON_FIRST_FRAME}, the animation will start the first time
514 * Convenience method to start the animation the first time
522 * Convenience method to start the animation at the current time in
530 * Defines what this animation should do when it reaches the end. This
542 * Sets how many times the animation should be repeated. If the repeat
543 * count is 0, the animation is never repeated. If the repeat count is
547 * @param repeatCount the number of times the animation should be repeated
558 * If fillEnabled is true, this animation will apply the value of fillBefore.
560 * @return true if the animation will take fillBefore into account
568 * If fillEnabled is true, the animation will apply the value of fillBefore.
569 * Otherwise, fillBefore is ignored and the animation
570 * transformation is always applied until the animation ends.
572 * @param fillEnabled true if the animation should take the value of fillBefore into account
583 * If fillBefore is true, this animation will apply its transformation
584 * before the start time of the animation. Defaults to true if
587 * android.view.animation.AnimationSet AnimationSet} to chain
591 * @param fillBefore true if the animation should apply its transformation before it starts
601 * If fillAfter is true, the transformation that this animation performed
604 * android.view.animation.AnimationSet AnimationSet} to chain
607 * @param fillAfter true if the animation should apply its transformation after it ends
617 * Set the Z ordering mode to use while running the animation.
628 * Set background behind animation.
644 * an Animation such as the pivot points in {@link ScaleAnimation} and {@link RotateAnimation}.
651 * If detachWallpaper is true, and this is a window animation of a window
653 * the wallpaper while it runs. That is, the animation will only be applied
656 * @param detachWallpaper true if the wallpaper should be detached from the animation
664 * Gets the acceleration curve type for this animation.
666 * @return the {@link Interpolator} associated to this animation
674 * When this animation should start. If the animation has not startet yet,
677 * @return the time in milliseconds when the animation should start or
685 * How long this animation should last
687 * @return the duration in milliseconds of the animation
695 * When this animation should start, relative to StartTime
705 * Defines what this animation should do when it reaches the end.
715 * Defines how many times the animation should repeat. The default value
718 * @return the number of times the animation should repeat, or {@link #INFINITE}
726 * If fillBefore is true, this animation will apply its transformation
727 * before the start time of the animation. If fillBefore is false and
729 * the start time of the animation.
731 * @return true if the animation applies its transformation before it starts
739 * If fillAfter is true, this animation will apply its transformation
740 * after the end time of the animation.
742 * @return true if the animation applies its transformation after it ends
750 * Returns the Z ordering mode to use while running the animation as
762 * Returns the background color behind the animation.
778 * <p>Indicates whether or not this animation will affect the transformation
779 * matrix. For instance, a fade animation will not affect the matrix whereas
780 * a scale animation will.</p>
782 * @return true if this animation will change the transformation matrix
790 * <p>Indicates whether or not this animation will affect the bounds of the
791 * animated view. For instance, a fade animation will not affect the bounds
792 * whereas a 200% scale animation will.</p>
794 * @return true if this animation will change the view's bounds
802 * <p>Binds an animation listener to this animation. The animation listener
803 * is notified of animation events such as the end of the animation or the
804 * repetition of the animation.</p>
806 * @param listener the animation listener to be notified
813 * Gurantees that this animation has an interpolator. Will use
823 * Compute a hint at how long the entire animation may last, in milliseconds.
837 * @param currentTime Where we are in the animation. This is wall clock time.
839 * caller and will be filled in by the animation.
840 * @return True if the animation is still running
943 * @param currentTime Where we are in the animation. This is wall clock time.
945 * caller and will be filled in by the animation.
948 * @return True if the animation is still running
957 * <p>Indicates whether this animation has started or not.</p>
959 * @return true if the animation has started, false otherwise
966 * <p>Indicates whether this animation has ended or not.</p>
968 * @return true if the animation has ended, false otherwise
992 * @param type One of Animation.ABSOLUTE, Animation.RELATIVE_TO_SELF, or
993 * Animation.RELATIVE_TO_PARENT.
997 * @return The dimension to use for the animation
1075 * Return true if this animation changes the view's alpha property.
1088 * One of Animation.ABSOLUTE, Animation.RELATIVE_TO_SELF, or
1089 * Animation.RELATIVE_TO_PARENT.
1142 * <p>An animation listener receives notifications from an animation.
1143 * Notifications indicate animation related events, such as the end or the
1144 * repetition of the animation.</p>
1148 * <p>Notifies the start of the animation.</p>
1150 * @param animation The started animation.
1152 void onAnimationStart(Animation animation);
1155 * <p>Notifies the end of the animation. This callback is not invoked
1158 * @param animation The animation which reached its end.
1160 void onAnimationEnd(Animation animation);
1163 * <p>Notifies the repetition of the animation.</p>
1165 * @param animation The animation which was repeated.
1167 void onAnimationRepeat(Animation animation);