Lines Matching refs:target

30  * This subclass of {@link ValueAnimator} provides support for animating properties on target objects.
31 * The constructors of this class take parameters to define the target object that will be animated
52 * A weak reference to the target object on which the property exists, set
67 * in a call to the function <code>setFoo()</code> on the target object. If either
100 // New property/values/target should cause re-initialization prior to starting
125 // New property/values/target should cause re-initialization prior to starting
133 * in a call to the function <code>setFoo()</code> on the target object. If either
179 * Private utility constructor that initializes the target object and name of the
182 * @param target The object whose property is to be animated. This object should
187 private ObjectAnimator(Object target, String propertyName) {
188 setTarget(target);
193 * Private utility constructor that initializes the target object and property being animated.
195 * @param target The object whose property is to be animated.
198 private <T> ObjectAnimator(T target, Property<T, ?> property) {
199 setTarget(target);
210 * @param target The object whose property is to be animated. This object should
217 public static ObjectAnimator ofInt(Object target, String propertyName, int... values) {
218 ObjectAnimator anim = new ObjectAnimator(target, propertyName);
230 * @param target The object whose properties are to be animated. This object should
240 public static ObjectAnimator ofInt(Object target, String xPropertyName, String yPropertyName,
247 return ofPropertyValuesHolder(target, x, y);
257 * @param target The object whose property is to be animated.
262 public static <T> ObjectAnimator ofInt(T target, Property<T, Integer> property, int... values) {
263 ObjectAnimator anim = new ObjectAnimator(target, property);
275 * @param target The object whose properties are to be animated.
281 public static <T> ObjectAnimator ofInt(T target, Property<T, Integer> xProperty,
288 return ofPropertyValuesHolder(target, x, y);
299 * @param target The object whose property is to be animated. This object may
307 public static ObjectAnimator ofMultiInt(Object target, String propertyName, int[][] values) {
309 return ofPropertyValuesHolder(target, pvh);
313 * Constructs and returns an ObjectAnimator that animates the target using a multi-int setter
319 * @param target The object whose property is to be animated. This object may
327 public static ObjectAnimator ofMultiInt(Object target, String propertyName, Path path) {
329 return ofPropertyValuesHolder(target, pvh);
339 * @param target The object whose property is to be animated. This object may
351 public static <T> ObjectAnimator ofMultiInt(Object target, String propertyName,
355 return ObjectAnimator.ofPropertyValuesHolder(target, pvh);
365 * @param target The object whose property is to be animated. This object should
372 public static ObjectAnimator ofArgb(Object target, String propertyName, int... values) {
373 ObjectAnimator animator = ofInt(target, propertyName, values);
385 * @param target The object whose property is to be animated.
390 public static <T> ObjectAnimator ofArgb(T target, Property<T, Integer> property,
392 ObjectAnimator animator = ofInt(target, property, values);
404 * @param target The object whose property is to be animated. This object should
411 public static ObjectAnimator ofFloat(Object target, String propertyName, float... values) {
412 ObjectAnimator anim = new ObjectAnimator(target, propertyName);
424 * @param target The object whose properties are to be animated. This object should
434 public static ObjectAnimator ofFloat(Object target, String xPropertyName, String yPropertyName,
441 return ofPropertyValuesHolder(target, x, y);
451 * @param target The object whose property is to be animated.
456 public static <T> ObjectAnimator ofFloat(T target, Property<T, Float> property,
458 ObjectAnimator anim = new ObjectAnimator(target, property);
470 * @param target The object whose properties are to be animated.
476 public static <T> ObjectAnimator ofFloat(T target, Property<T, Float> xProperty,
483 return ofPropertyValuesHolder(target, x, y);
494 * @param target The object whose property is to be animated. This object may
502 public static ObjectAnimator ofMultiFloat(Object target, String propertyName,
505 return ofPropertyValuesHolder(target, pvh);
509 * Constructs and returns an ObjectAnimator that animates the target using a multi-float setter
515 * @param target The object whose property is to be animated. This object may
523 public static ObjectAnimator ofMultiFloat(Object target, String propertyName, Path path) {
525 return ofPropertyValuesHolder(target, pvh);
535 * @param target The object whose property is to be animated. This object may
547 public static <T> ObjectAnimator ofMultiFloat(Object target, String propertyName,
551 return ObjectAnimator.ofPropertyValuesHolder(target, pvh);
561 * @param target The object whose property is to be animated. This object should
571 public static ObjectAnimator ofObject(Object target, String propertyName,
573 ObjectAnimator anim = new ObjectAnimator(target, propertyName);
588 * @param target The object whose property is to be animated. This object should
598 public static ObjectAnimator ofObject(Object target, String propertyName,
601 return ofPropertyValuesHolder(target, pvh);
611 * @param target The object whose property is to be animated.
620 public static <T, V> ObjectAnimator ofObject(T target, Property<T, V> property,
622 ObjectAnimator anim = new ObjectAnimator(target, property);
638 * @param target The object whose property is to be animated.
648 public static <T, V, P> ObjectAnimator ofObject(T target, Property<T, P> property,
652 return ofPropertyValuesHolder(target, pvh);
667 * @param target The object whose property is to be animated.
675 public static <T, V> ObjectAnimator ofObject(T target, @NonNull Property<T, V> property,
678 return ofPropertyValuesHolder(target, pvh);
687 * @param target The object whose property is to be animated. Depending on how the
688 * PropertyValuesObjects were constructed, the target object should either have the {@link
690 * PropertyValuesHOlder objects were created with property names) the target object should have
699 public static ObjectAnimator ofPropertyValuesHolder(Object target,
702 anim.setTarget(target);
755 * when any other ObjectAnimator with the same target and properties is started.
756 * Setting this flag may make it easier to run different animators on the same target
759 * target properties, in the same order.
761 * @param cancel Whether future ObjectAnimators with the same target and properties
821 Log.d(LOG_TAG, "Anim target, duration: " + getTarget() + ", " + getDuration());
849 final Object target = getTarget();
850 if (target != null) {
853 mValues[i].setupSetterAndGetter(target);
867 * <code>ObjectAnimator.ofInt(target, propertyName, 0, 10).setDuration(500).start()</code>.
878 * The target object whose property will be animated by this animation
888 * Sets the target object whose property will be animated by this animation. If the
891 * @param target The object being animated
894 public void setTarget(@Nullable Object target) {
896 if (oldTarget != target) {
900 mTarget = target == null ? null : new WeakReference<Object>(target);
901 // New target should cause re-initialization prior to starting
910 final Object target = getTarget();
911 if (target != null) {
914 mValues[i].setupStartValue(target);
923 final Object target = getTarget();
924 if (target != null) {
927 mValues[i].setupEndValue(target);
946 final Object target = getTarget();
947 if (mTarget != null && target == null) {
948 // We lost the target reference, cancel and clean up.
956 mValues[i].setAnimatedValue(target);
969 String returnVal = "ObjectAnimator@" + Integer.toHexString(hashCode()) + ", target " +