Home | History | Annotate | Download | only in animation

Lines Matching defs:ValueAnimator

39  * <p>By default, ValueAnimator uses non-linear time interpolation, via the
42 * {@link ValueAnimator#setInterpolator(TimeInterpolator)}.</p>
46 * <p>For more information about animating with {@code ValueAnimator}, read the
51 public class ValueAnimator extends Animator {
235 * Creates a new ValueAnimator object. This default constructor is primarily for
239 public ValueAnimator() {
243 * Constructs and returns a ValueAnimator that animates between int values. A single
245 * useful in a ValueAnimator object because there is no way for the object to determine the
251 * @return A ValueAnimator object that is set up to animate between the given values.
253 public static ValueAnimator ofInt(int... values) {
254 ValueAnimator anim = new ValueAnimator();
260 * Constructs and returns a ValueAnimator that animates between float values. A single
262 * useful in a ValueAnimator object because there is no way for the object to determine the
268 * @return A ValueAnimator object that is set up to animate between the given values.
270 public static ValueAnimator ofFloat(float... values) {
271 ValueAnimator anim = new ValueAnimator();
277 * Constructs and returns a ValueAnimator that animates between the values
282 * @return A ValueAnimator object that is set up to animate between the given values.
284 public static ValueAnimator ofPropertyValuesHolder(PropertyValuesHolder... values) {
285 ValueAnimator anim = new ValueAnimator();
290 * Constructs and returns a ValueAnimator that animates between Object values. A single
292 * useful in a ValueAnimator object because there is no way for the object to determine the
297 * <p>Since ValueAnimator does not know how to animate between arbitrary Objects, this
298 * factory method also takes a TypeEvaluator object that the ValueAnimator will use
305 * @return A ValueAnimator object that is set up to animate between the given values.
307 public static ValueAnimator ofObject(TypeEvaluator evaluator, Object... values) {
308 ValueAnimator anim = new ValueAnimator();
317 * useful in a ValueAnimator object because there is no way for the object to determine the
322 * <p>If there are already multiple sets of values defined for this ValueAnimator via more
345 * useful in a ValueAnimator object because there is no way for the object to determine the
350 * <p>If there are already multiple sets of values defined for this ValueAnimator via more
373 * useful in a ValueAnimator object because there is no way for the object to determine the
378 * <p>If there are already multiple sets of values defined for this ValueAnimator via more
382 * <p>There should be a TypeEvaluator set on the ValueAnimator that knows how to interpolate
383 * between these value objects. ValueAnimator only knows how to interpolate between the
405 * by the constructors of ValueAnimator that take a list of values. But a ValueAnimator can
424 * Returns the values that this ValueAnimator animates between. These values are stored in
425 * PropertyValuesHolder objects, even if the ValueAnimator was created with a simple list
461 * @return ValueAnimator The object called with setDuration(). This return
463 * duration, as in <code>ValueAnimator.ofInt(0, 10).setDuration(500).start()</code>.
465 public ValueAnimator setDuration(long duration) {
530 private final ArrayList<ValueAnimator> mAnimations = new ArrayList<ValueAnimator>();
533 private final ArrayList<ValueAnimator> mPendingAnimations = new ArrayList<ValueAnimator>();
539 private final ArrayList<ValueAnimator> mDelayedAnims = new ArrayList<ValueAnimator>();
540 private final ArrayList<ValueAnimator> mEndingAnims = new ArrayList<ValueAnimator>();
541 private final ArrayList<ValueAnimator> mReadyAnims = new ArrayList<ValueAnimator>();
564 ArrayList<ValueAnimator> pendingCopy =
565 (ArrayList<ValueAnimator>) mPendingAnimations.clone();
569 ValueAnimator anim = pendingCopy.get(i);
582 ValueAnimator anim = mDelayedAnims.get(i);
590 ValueAnimator anim = mReadyAnims.get(i);
603 ValueAnimator anim = mAnimations.get(i);
704 * The most recent value calculated by this <code>ValueAnimator</code> when there is just one
706 * purpose for this read-only property is to retrieve the value from the <code>ValueAnimator</code>
707 * during a call to {@link AnimatorUpdateListener#onAnimationUpdate(ValueAnimator)}, which
710 * @return animatedValue The value most recently calculated by this <code>ValueAnimator</code> for
719 // Shouldn't get here; should always have values unless ValueAnimator was set up wrong
724 * The most recent value calculated by this <code>ValueAnimator</code> for <code>propertyName</code>.
726 * <code>ValueAnimator</code> during a call to
727 * {@link AnimatorUpdateListener#onAnimationUpdate(ValueAnimator)}, which
731 * by this <code>ValueAnimator</code>.
845 * Returns the timing interpolator that this ValueAnimator uses.
847 * @return The timing interpolator for this ValueAnimator.
862 * <p>If this ValueAnimator has only one set of values being animated between, this evaluator
864 * the case if PropertyValuesHOlder objects were set on the ValueAnimator, then the evaluator
898 * @param playBackwards Whether the ValueAnimator should start playing in reverse.
982 * Plays the ValueAnimator in reverse. If the animation is already running,
1178 public ValueAnimator clone() {
1179 final ValueAnimator anim = (ValueAnimator) super.clone();
1210 * to an <code>ValueAnimator</code> instance to receive callbacks on every animation
1212 * <code>ValueAnimator</code>.
1220 void onAnimationUpdate(ValueAnimator animation);
1263 String returnVal = "ValueAnimator@" + Integer.toHexString(hashCode());