Added in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Inherited Constants](https://developer.android.com/reference/android/animation/ObjectAnimator#inhconstants) \| [Ctors](https://developer.android.com/reference/android/animation/ObjectAnimator#pubctors) \| [Methods](https://developer.android.com/reference/android/animation/ObjectAnimator#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/android/animation/ObjectAnimator#inhmethods)

# ObjectAnimator

*** ** * ** ***


`
public

final

class
ObjectAnimator
`


`


`

`


`

`

extends https://developer.android.com/reference/android/animation/ValueAnimator


`

`


`

|---|---|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||||
| ↳ | [android.animation.Animator](https://developer.android.com/reference/android/animation/Animator) |||
|   | ↳ | [android.animation.ValueAnimator](https://developer.android.com/reference/android/animation/ValueAnimator) ||
|   |   | ↳ | android.animation.ObjectAnimator |

<br />

*** ** * ** ***

This subclass of `https://developer.android.com/reference/android/animation/ValueAnimator` provides support for animating properties on target objects.
The constructors of this class take parameters to define the target object that will be animated
as well as the name of the property that will be animated. Appropriate set/get functions
are then determined internally and the animation will call these functions as necessary to
animate the property.

Animators can be created from either code or resource files, as shown here:

```
<objectAnimator xmlns:android="http://schemas.android.com/apk/res/android"
    android:duration="1000"
    android:valueTo="200"
    android:valueType="floatType"
    android:propertyName="y"
    android:repeatCount="1"
    android:repeatMode="reverse"/>
```

Starting from API 23, it is possible to use `https://developer.android.com/reference/android/animation/PropertyValuesHolder` and
`https://developer.android.com/reference/android/animation/Keyframe` in resource files to create more complex animations. Using PropertyValuesHolders
allows animators to animate several properties in parallel, as shown in this sample:

```
<objectAnimator xmlns:android="http://schemas.android.com/apk/res/android"
                android:duration="1000"
                android:repeatCount="1"
                android:repeatMode="reverse">
    <propertyValuesHolder android:propertyName="x" android:valueTo="400"/>
    <propertyValuesHolder android:propertyName="y" android:valueTo="200"/>
</objectAnimator>
```

Using Keyframes allows animations to follow more complex paths from the start
to the end values. Note that you can specify explicit fractional values (from 0 to 1) for
each keyframe to determine when, in the overall duration, the animation should arrive at that
value. Alternatively, you can leave the fractions off and the keyframes will be equally
distributed within the total duration. Also, a keyframe with no value will derive its value
from the target object when the animator starts, just like animators with only one
value specified. In addition, an optional interpolator can be specified. The interpolator will
be applied on the interval between the keyframe that the interpolator is set on and the previous
keyframe. When no interpolator is supplied, the default `https://developer.android.com/reference/android/view/animation/AccelerateDecelerateInterpolator`
will be used.

```
<propertyValuesHolder android:propertyName="x" >
    <keyframe android:fraction="0" android:value="800" />
    <keyframe android:fraction=".2"
              android:interpolator="@android:anim/accelerate_interpolator"
              android:value="1000" />
    <keyframe android:fraction="1"
              android:interpolator="@android:anim/accelerate_interpolator"
              android:value="400" />
</propertyValuesHolder>
<propertyValuesHolder android:propertyName="y" >
    <keyframe/>
    <keyframe android:fraction=".2"
              android:interpolator="@android:anim/accelerate_interpolator"
              android:value="300"/>
    <keyframe android:interpolator="@android:anim/accelerate_interpolator"
              android:value="1000" />
</propertyValuesHolder>
```

### Developer Guides

For more information about animating with `ObjectAnimator`, read the
[Property
Animation](https://developer.android.com/guide/topics/graphics/prop-animation#object-animator) developer guide.

<br />

**See also:**

- `https://developer.android.com/reference/android/animation/ObjectAnimator#setPropertyName(java.lang.String)`

## Summary

| ### Inherited constants |
|---|
| From class `https://developer.android.com/reference/android/animation/ValueAnimator` |---|---| | `int` | `https://developer.android.com/reference/android/animation/ValueAnimator#INFINITE` This value used used with the `https://developer.android.com/reference/android/animation/ValueAnimator#setRepeatCount(int)` property to repeat the animation indefinitely. | | `int` | `https://developer.android.com/reference/android/animation/ValueAnimator#RESTART` When the animation reaches the end and `repeatCount` is INFINITE or a positive value, the animation restarts from the beginning. | | `int` | `https://developer.android.com/reference/android/animation/ValueAnimator#REVERSE` When the animation reaches the end and `repeatCount` is INFINITE or a positive value, the animation reverses direction on every iteration. | |
| From class `https://developer.android.com/reference/android/animation/Animator` |---|---| | `long` | `https://developer.android.com/reference/android/animation/Animator#DURATION_INFINITE` The value used to indicate infinite duration (e.g. when Animators repeat infinitely). | |

| ### Public constructors ||
|---|---|
| ` https://developer.android.com/reference/android/animation/ObjectAnimator#ObjectAnimator()() ` Creates a new ObjectAnimator object. |

| ### Public methods ||
|---|---|
| ` https://developer.android.com/reference/android/animation/ObjectAnimator` | ` https://developer.android.com/reference/android/animation/ObjectAnimator#clone()() ` Creates and returns a copy of this object. |
| ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/android/animation/ObjectAnimator#getPropertyName()() ` Gets the name of the property that will be animated. |
| ` https://developer.android.com/reference/java/lang/Object` | ` https://developer.android.com/reference/android/animation/ObjectAnimator#getTarget()() ` The target object whose property will be animated by this animation |
| ` static <T> https://developer.android.com/reference/android/animation/ObjectAnimator` | ` https://developer.android.com/reference/android/animation/ObjectAnimator#ofArgb(T,%20android.util.Property<T,java.lang.Integer>,%20int[])(T target, https://developer.android.com/reference/android/util/Property<T, https://developer.android.com/reference/java/lang/Integer> property, int... values) ` Constructs and returns an ObjectAnimator that animates between color values. |
| ` static https://developer.android.com/reference/android/animation/ObjectAnimator` | ` https://developer.android.com/reference/android/animation/ObjectAnimator#ofArgb(java.lang.Object,%20java.lang.String,%20int[])(https://developer.android.com/reference/java/lang/Object target, https://developer.android.com/reference/java/lang/String propertyName, int... values) ` Constructs and returns an ObjectAnimator that animates between color values. |
| ` static https://developer.android.com/reference/android/animation/ObjectAnimator` | ` https://developer.android.com/reference/android/animation/ObjectAnimator#ofFloat(java.lang.Object,%20java.lang.String,%20java.lang.String,%20android.graphics.Path)(https://developer.android.com/reference/java/lang/Object target, https://developer.android.com/reference/java/lang/String xPropertyName, https://developer.android.com/reference/java/lang/String yPropertyName, https://developer.android.com/reference/android/graphics/Path path) ` Constructs and returns an ObjectAnimator that animates coordinates along a `Path` using two properties. |
| ` static <T> https://developer.android.com/reference/android/animation/ObjectAnimator` | ` https://developer.android.com/reference/android/animation/ObjectAnimator#ofFloat(T,%20android.util.Property<T,java.lang.Float>,%20android.util.Property<T,java.lang.Float>,%20android.graphics.Path)(T target, https://developer.android.com/reference/android/util/Property<T, https://developer.android.com/reference/java/lang/Float> xProperty, https://developer.android.com/reference/android/util/Property<T, https://developer.android.com/reference/java/lang/Float> yProperty, https://developer.android.com/reference/android/graphics/Path path) ` Constructs and returns an ObjectAnimator that animates coordinates along a `Path` using two properties. |
| ` static <T> https://developer.android.com/reference/android/animation/ObjectAnimator` | ` https://developer.android.com/reference/android/animation/ObjectAnimator#ofFloat(T,%20android.util.Property<T,java.lang.Float>,%20float[])(T target, https://developer.android.com/reference/android/util/Property<T, https://developer.android.com/reference/java/lang/Float> property, float... values) ` Constructs and returns an ObjectAnimator that animates between float values. |
| ` static https://developer.android.com/reference/android/animation/ObjectAnimator` | ` https://developer.android.com/reference/android/animation/ObjectAnimator#ofFloat(java.lang.Object,%20java.lang.String,%20float[])(https://developer.android.com/reference/java/lang/Object target, https://developer.android.com/reference/java/lang/String propertyName, float... values) ` Constructs and returns an ObjectAnimator that animates between float values. |
| ` static <T> https://developer.android.com/reference/android/animation/ObjectAnimator` | ` https://developer.android.com/reference/android/animation/ObjectAnimator#ofInt(T,%20android.util.Property<T,java.lang.Integer>,%20int[])(T target, https://developer.android.com/reference/android/util/Property<T, https://developer.android.com/reference/java/lang/Integer> property, int... values) ` Constructs and returns an ObjectAnimator that animates between int values. |
| ` static https://developer.android.com/reference/android/animation/ObjectAnimator` | ` https://developer.android.com/reference/android/animation/ObjectAnimator#ofInt(java.lang.Object,%20java.lang.String,%20int[])(https://developer.android.com/reference/java/lang/Object target, https://developer.android.com/reference/java/lang/String propertyName, int... values) ` Constructs and returns an ObjectAnimator that animates between int values. |
| ` static <T> https://developer.android.com/reference/android/animation/ObjectAnimator` | ` https://developer.android.com/reference/android/animation/ObjectAnimator#ofInt(T,%20android.util.Property<T,java.lang.Integer>,%20android.util.Property<T,java.lang.Integer>,%20android.graphics.Path)(T target, https://developer.android.com/reference/android/util/Property<T, https://developer.android.com/reference/java/lang/Integer> xProperty, https://developer.android.com/reference/android/util/Property<T, https://developer.android.com/reference/java/lang/Integer> yProperty, https://developer.android.com/reference/android/graphics/Path path) ` Constructs and returns an ObjectAnimator that animates coordinates along a `Path` using two properties. |
| ` static https://developer.android.com/reference/android/animation/ObjectAnimator` | ` https://developer.android.com/reference/android/animation/ObjectAnimator#ofInt(java.lang.Object,%20java.lang.String,%20java.lang.String,%20android.graphics.Path)(https://developer.android.com/reference/java/lang/Object target, https://developer.android.com/reference/java/lang/String xPropertyName, https://developer.android.com/reference/java/lang/String yPropertyName, https://developer.android.com/reference/android/graphics/Path path) ` Constructs and returns an ObjectAnimator that animates coordinates along a `Path` using two properties. |
| ` static <T> https://developer.android.com/reference/android/animation/ObjectAnimator` | ` https://developer.android.com/reference/android/animation/ObjectAnimator#ofMultiFloat(java.lang.Object,%20java.lang.String,%20android.animation.TypeConverter<T,float[]>,%20android.animation.TypeEvaluator<T>,%20T[])(https://developer.android.com/reference/java/lang/Object target, https://developer.android.com/reference/java/lang/String propertyName, https://developer.android.com/reference/android/animation/TypeConverter<T, float[]> converter, https://developer.android.com/reference/android/animation/TypeEvaluator<T> evaluator, T... values) ` Constructs and returns an ObjectAnimator that animates over values for a multiple float parameters setter. |
| ` static https://developer.android.com/reference/android/animation/ObjectAnimator` | ` https://developer.android.com/reference/android/animation/ObjectAnimator#ofMultiFloat(java.lang.Object,%20java.lang.String,%20float[][])(https://developer.android.com/reference/java/lang/Object target, https://developer.android.com/reference/java/lang/String propertyName, float[][] values) ` Constructs and returns an ObjectAnimator that animates over float values for a multiple parameters setter. |
| ` static https://developer.android.com/reference/android/animation/ObjectAnimator` | ` https://developer.android.com/reference/android/animation/ObjectAnimator#ofMultiFloat(java.lang.Object,%20java.lang.String,%20android.graphics.Path)(https://developer.android.com/reference/java/lang/Object target, https://developer.android.com/reference/java/lang/String propertyName, https://developer.android.com/reference/android/graphics/Path path) ` Constructs and returns an ObjectAnimator that animates the target using a multi-float setter along the given `Path`. |
| ` static https://developer.android.com/reference/android/animation/ObjectAnimator` | ` https://developer.android.com/reference/android/animation/ObjectAnimator#ofMultiInt(java.lang.Object,%20java.lang.String,%20int[][])(https://developer.android.com/reference/java/lang/Object target, https://developer.android.com/reference/java/lang/String propertyName, int[][] values) ` Constructs and returns an ObjectAnimator that animates over int values for a multiple parameters setter. |
| ` static https://developer.android.com/reference/android/animation/ObjectAnimator` | ` https://developer.android.com/reference/android/animation/ObjectAnimator#ofMultiInt(java.lang.Object,%20java.lang.String,%20android.graphics.Path)(https://developer.android.com/reference/java/lang/Object target, https://developer.android.com/reference/java/lang/String propertyName, https://developer.android.com/reference/android/graphics/Path path) ` Constructs and returns an ObjectAnimator that animates the target using a multi-int setter along the given `Path`. |
| ` static <T> https://developer.android.com/reference/android/animation/ObjectAnimator` | ` https://developer.android.com/reference/android/animation/ObjectAnimator#ofMultiInt(java.lang.Object,%20java.lang.String,%20android.animation.TypeConverter<T,int[]>,%20android.animation.TypeEvaluator<T>,%20T[])(https://developer.android.com/reference/java/lang/Object target, https://developer.android.com/reference/java/lang/String propertyName, https://developer.android.com/reference/android/animation/TypeConverter<T, int[]> converter, https://developer.android.com/reference/android/animation/TypeEvaluator<T> evaluator, T... values) ` Constructs and returns an ObjectAnimator that animates over values for a multiple int parameters setter. |
| ` static <T, V> https://developer.android.com/reference/android/animation/ObjectAnimator` | ` https://developer.android.com/reference/android/animation/ObjectAnimator#ofObject(T,%20android.util.Property<T,V>,%20android.animation.TypeConverter<android.graphics.PointF,V>,%20android.graphics.Path)(T target, https://developer.android.com/reference/android/util/Property<T, V> property, https://developer.android.com/reference/android/animation/TypeConverter<https://developer.android.com/reference/android/graphics/PointF, V> converter, https://developer.android.com/reference/android/graphics/Path path) ` Constructs and returns an ObjectAnimator that animates a property along a `Path`. |
| ` static <T, V, P> https://developer.android.com/reference/android/animation/ObjectAnimator` | ` https://developer.android.com/reference/android/animation/ObjectAnimator#ofObject(T,%20android.util.Property<T,P>,%20android.animation.TypeConverter<V,P>,%20android.animation.TypeEvaluator<V>,%20V[])(T target, https://developer.android.com/reference/android/util/Property<T, P> property, https://developer.android.com/reference/android/animation/TypeConverter<V, P> converter, https://developer.android.com/reference/android/animation/TypeEvaluator<V> evaluator, V... values) ` Constructs and returns an ObjectAnimator that animates between Object values. |
| ` static https://developer.android.com/reference/android/animation/ObjectAnimator` | ` https://developer.android.com/reference/android/animation/ObjectAnimator#ofObject(java.lang.Object,%20java.lang.String,%20android.animation.TypeConverter<android.graphics.PointF,?>,%20android.graphics.Path)(https://developer.android.com/reference/java/lang/Object target, https://developer.android.com/reference/java/lang/String propertyName, https://developer.android.com/reference/android/animation/TypeConverter<https://developer.android.com/reference/android/graphics/PointF, ?> converter, https://developer.android.com/reference/android/graphics/Path path) ` Constructs and returns an ObjectAnimator that animates a property along a `Path`. |
| ` static https://developer.android.com/reference/android/animation/ObjectAnimator` | ` https://developer.android.com/reference/android/animation/ObjectAnimator#ofObject(java.lang.Object,%20java.lang.String,%20android.animation.TypeEvaluator,%20java.lang.Object[])(https://developer.android.com/reference/java/lang/Object target, https://developer.android.com/reference/java/lang/String propertyName, https://developer.android.com/reference/android/animation/TypeEvaluator<T> evaluator, https://developer.android.com/reference/java/lang/Object values) ` Constructs and returns an ObjectAnimator that animates between Object values. |
| ` static <T, V> https://developer.android.com/reference/android/animation/ObjectAnimator` | ` https://developer.android.com/reference/android/animation/ObjectAnimator#ofObject(T,%20android.util.Property<T,V>,%20android.animation.TypeEvaluator<V>,%20V[])(T target, https://developer.android.com/reference/android/util/Property<T, V> property, https://developer.android.com/reference/android/animation/TypeEvaluator<V> evaluator, V... values) ` Constructs and returns an ObjectAnimator that animates between Object values. |
| ` static https://developer.android.com/reference/android/animation/ObjectAnimator` | ` https://developer.android.com/reference/android/animation/ObjectAnimator#ofPropertyValuesHolder(java.lang.Object,%20android.animation.PropertyValuesHolder[])(https://developer.android.com/reference/java/lang/Object target, https://developer.android.com/reference/android/animation/PropertyValuesHolder values) ` Constructs and returns an ObjectAnimator that animates between the sets of values specified in `PropertyValueHolder` objects. |
| ` void` | ` https://developer.android.com/reference/android/animation/ObjectAnimator#setAutoCancel(boolean)(boolean cancel) ` autoCancel controls whether an ObjectAnimator will be canceled automatically when any other ObjectAnimator with the same target and properties is started. |
| ` https://developer.android.com/reference/android/animation/ObjectAnimator` | ` https://developer.android.com/reference/android/animation/ObjectAnimator#setDuration(long)(long duration) ` Sets the length of the animation. |
| ` void` | ` https://developer.android.com/reference/android/animation/ObjectAnimator#setFloatValues(float[])(float... values) ` Sets float values that will be animated between. |
| ` void` | ` https://developer.android.com/reference/android/animation/ObjectAnimator#setIntValues(int[])(int... values) ` Sets int values that will be animated between. |
| ` void` | ` https://developer.android.com/reference/android/animation/ObjectAnimator#setObjectValues(java.lang.Object[])(https://developer.android.com/reference/java/lang/Object values) ` Sets the values to animate between for this animation. |
| ` void` | ` https://developer.android.com/reference/android/animation/ObjectAnimator#setProperty(android.util.Property)(https://developer.android.com/reference/android/util/Property<T, V> property) ` Sets the property that will be animated. |
| ` void` | ` https://developer.android.com/reference/android/animation/ObjectAnimator#setPropertyName(java.lang.String)(https://developer.android.com/reference/java/lang/String propertyName) ` Sets the name of the property that will be animated. |
| ` void` | ` https://developer.android.com/reference/android/animation/ObjectAnimator#setTarget(java.lang.Object)(https://developer.android.com/reference/java/lang/Object target) ` Sets the target object whose property will be animated by this animation. |
| ` void` | ` https://developer.android.com/reference/android/animation/ObjectAnimator#setupEndValues()() ` This method tells the object to use appropriate information to extract ending values for the animation. |
| ` void` | ` https://developer.android.com/reference/android/animation/ObjectAnimator#setupStartValues()() ` This method tells the object to use appropriate information to extract starting values for the animation. |
| ` void` | ` https://developer.android.com/reference/android/animation/ObjectAnimator#start()() ` Starts this animation. |
| ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/android/animation/ObjectAnimator#toString()() ` Returns a string representation of the object. |

| ### Inherited methods |
|---|---|
| From class ` https://developer.android.com/reference/android/animation/ValueAnimator ` |---|---| | ` void` | ` https://developer.android.com/reference/android/animation/ValueAnimator#addUpdateListener(android.animation.ValueAnimator.AnimatorUpdateListener)(https://developer.android.com/reference/android/animation/ValueAnimator.AnimatorUpdateListener listener) ` Adds a listener to the set of listeners that are sent update events through the life of an animation. | | ` static boolean` | ` https://developer.android.com/reference/android/animation/ValueAnimator#areAnimatorsEnabled()() ` Returns whether animators are currently enabled, system-wide. | | ` void` | ` https://developer.android.com/reference/android/animation/ValueAnimator#cancel()() ` Cancels the animation. | | ` https://developer.android.com/reference/android/animation/ValueAnimator` | ` https://developer.android.com/reference/android/animation/ValueAnimator#clone()() ` Creates and returns a copy of this object. | | ` void` | ` https://developer.android.com/reference/android/animation/ValueAnimator#end()() ` Ends the animation. | | ` float` | ` https://developer.android.com/reference/android/animation/ValueAnimator#getAnimatedFraction()() ` Returns the current animation fraction, which is the elapsed/interpolated fraction used in the most recent frame update on the animation. | | ` https://developer.android.com/reference/java/lang/Object` | ` https://developer.android.com/reference/android/animation/ValueAnimator#getAnimatedValue()() ` The most recent value calculated by this `ValueAnimator` when there is just one property being animated. | | ` https://developer.android.com/reference/java/lang/Object` | ` https://developer.android.com/reference/android/animation/ValueAnimator#getAnimatedValue(java.lang.String)(https://developer.android.com/reference/java/lang/String propertyName) ` The most recent value calculated by this `ValueAnimator` for `propertyName`. | | ` long` | ` https://developer.android.com/reference/android/animation/ValueAnimator#getCurrentPlayTime()() ` Gets the current position of the animation in time, which is equal to the current time minus the time that the animation started. | | ` long` | ` https://developer.android.com/reference/android/animation/ValueAnimator#getDuration()() ` Gets the length of the animation. | | ` static float` | ` https://developer.android.com/reference/android/animation/ValueAnimator#getDurationScale()() ` Returns the system-wide scaling factor for Animator-based animations. | | ` static long` | ` https://developer.android.com/reference/android/animation/ValueAnimator#getFrameDelay()() ` The amount of time, in milliseconds, between each frame of the animation. | | ` https://developer.android.com/reference/android/animation/TimeInterpolator` | ` https://developer.android.com/reference/android/animation/ValueAnimator#getInterpolator()() ` Returns the timing interpolator that this ValueAnimator uses. | | ` int` | ` https://developer.android.com/reference/android/animation/ValueAnimator#getRepeatCount()() ` Defines how many times the animation should repeat. | | ` int` | ` https://developer.android.com/reference/android/animation/ValueAnimator#getRepeatMode()() ` Defines what this animation should do when it reaches the end. | | ` long` | ` https://developer.android.com/reference/android/animation/ValueAnimator#getStartDelay()() ` The amount of time, in milliseconds, to delay starting the animation after `https://developer.android.com/reference/android/animation/ValueAnimator#start()` is called. | | ` long` | ` https://developer.android.com/reference/android/animation/ValueAnimator#getTotalDuration()() ` Gets the total duration of the animation, accounting for animation sequences, start delay, and repeating. | | ` https://developer.android.com/reference/android/animation/PropertyValuesHolder` | ` https://developer.android.com/reference/android/animation/ValueAnimator#getValues()() ` Returns the values that this ValueAnimator animates between. | | ` boolean` | ` https://developer.android.com/reference/android/animation/ValueAnimator#isRunning()() ` Returns whether this Animator is currently running (having been started and gone past any initial startDelay period and not yet ended). | | ` boolean` | ` https://developer.android.com/reference/android/animation/ValueAnimator#isStarted()() ` Returns whether this Animator has been started and not yet ended. | | ` static https://developer.android.com/reference/android/animation/ValueAnimator` | ` https://developer.android.com/reference/android/animation/ValueAnimator#ofArgb(int[])(int... values) ` Constructs and returns a ValueAnimator that animates between color values. | | ` static https://developer.android.com/reference/android/animation/ValueAnimator` | ` https://developer.android.com/reference/android/animation/ValueAnimator#ofFloat(float[])(float... values) ` Constructs and returns a ValueAnimator that animates between float values. | | ` static https://developer.android.com/reference/android/animation/ValueAnimator` | ` https://developer.android.com/reference/android/animation/ValueAnimator#ofInt(int[])(int... values) ` Constructs and returns a ValueAnimator that animates between int values. | | ` static https://developer.android.com/reference/android/animation/ValueAnimator` | ` https://developer.android.com/reference/android/animation/ValueAnimator#ofObject(android.animation.TypeEvaluator,%20java.lang.Object[])(https://developer.android.com/reference/android/animation/TypeEvaluator<T> evaluator, https://developer.android.com/reference/java/lang/Object values) ` Constructs and returns a ValueAnimator that animates between Object values. | | ` static https://developer.android.com/reference/android/animation/ValueAnimator` | ` https://developer.android.com/reference/android/animation/ValueAnimator#ofPropertyValuesHolder(android.animation.PropertyValuesHolder[])(https://developer.android.com/reference/android/animation/PropertyValuesHolder values) ` Constructs and returns a ValueAnimator that animates between the values specified in the PropertyValuesHolder objects. | | ` void` | ` https://developer.android.com/reference/android/animation/ValueAnimator#pause()() ` Pauses a running animation. | | ` static boolean` | ` https://developer.android.com/reference/android/animation/ValueAnimator#registerDurationScaleChangeListener(android.animation.ValueAnimator.DurationScaleChangeListener)(https://developer.android.com/reference/android/animation/ValueAnimator.DurationScaleChangeListener listener) ` Registers a `https://developer.android.com/reference/android/animation/ValueAnimator.DurationScaleChangeListener` This listens for changes to the system-wide scaling factor for Animator-based animations. | | ` void` | ` https://developer.android.com/reference/android/animation/ValueAnimator#removeAllUpdateListeners()() ` Removes all listeners from the set listening to frame updates for this animation. | | ` void` | ` https://developer.android.com/reference/android/animation/ValueAnimator#removeUpdateListener(android.animation.ValueAnimator.AnimatorUpdateListener)(https://developer.android.com/reference/android/animation/ValueAnimator.AnimatorUpdateListener listener) ` Removes a listener from the set listening to frame updates for this animation. | | ` void` | ` https://developer.android.com/reference/android/animation/ValueAnimator#resume()() ` Resumes a paused animation, causing the animator to pick up where it left off when it was paused. | | ` void` | ` https://developer.android.com/reference/android/animation/ValueAnimator#reverse()() ` Plays the ValueAnimator in reverse. | | ` void` | ` https://developer.android.com/reference/android/animation/ValueAnimator#setCurrentFraction(float)(float fraction) ` Sets the position of the animation to the specified fraction. | | ` void` | ` https://developer.android.com/reference/android/animation/ValueAnimator#setCurrentPlayTime(long)(long playTime) ` Sets the position of the animation to the specified point in time. | | ` https://developer.android.com/reference/android/animation/ValueAnimator` | ` https://developer.android.com/reference/android/animation/ValueAnimator#setDuration(long)(long duration) ` Sets the length of the animation. | | ` void` | ` https://developer.android.com/reference/android/animation/ValueAnimator#setEvaluator(android.animation.TypeEvaluator)(https://developer.android.com/reference/android/animation/TypeEvaluator<T> value) ` The type evaluator to be used when calculating the animated values of this animation. | | ` void` | ` https://developer.android.com/reference/android/animation/ValueAnimator#setFloatValues(float[])(float... values) ` Sets float values that will be animated between. | | ` static void` | ` https://developer.android.com/reference/android/animation/ValueAnimator#setFrameDelay(long)(long frameDelay) ` The amount of time, in milliseconds, between each frame of the animation. | | ` void` | ` https://developer.android.com/reference/android/animation/ValueAnimator#setIntValues(int[])(int... values) ` Sets int values that will be animated between. | | ` void` | ` https://developer.android.com/reference/android/animation/ValueAnimator#setInterpolator(android.animation.TimeInterpolator)(https://developer.android.com/reference/android/animation/TimeInterpolator value) ` The time interpolator used in calculating the elapsed fraction of this animation. | | ` void` | ` https://developer.android.com/reference/android/animation/ValueAnimator#setObjectValues(java.lang.Object[])(https://developer.android.com/reference/java/lang/Object values) ` Sets the values to animate between for this animation. | | ` void` | ` https://developer.android.com/reference/android/animation/ValueAnimator#setRepeatCount(int)(int value) ` Sets how many times the animation should be repeated. | | ` void` | ` https://developer.android.com/reference/android/animation/ValueAnimator#setRepeatMode(int)(int value) ` Defines what this animation should do when it reaches the end. | | ` void` | ` https://developer.android.com/reference/android/animation/ValueAnimator#setStartDelay(long)(long startDelay) ` The amount of time, in milliseconds, to delay starting the animation after `https://developer.android.com/reference/android/animation/ValueAnimator#start()` is called. | | ` void` | ` https://developer.android.com/reference/android/animation/ValueAnimator#setValues(android.animation.PropertyValuesHolder[])(https://developer.android.com/reference/android/animation/PropertyValuesHolder values) ` Sets the values, per property, being animated between. | | ` void` | ` https://developer.android.com/reference/android/animation/ValueAnimator#start()() ` Starts this animation. | | ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/android/animation/ValueAnimator#toString()() ` Returns a string representation of the object. | | ` static boolean` | ` https://developer.android.com/reference/android/animation/ValueAnimator#unregisterDurationScaleChangeListener(android.animation.ValueAnimator.DurationScaleChangeListener)(https://developer.android.com/reference/android/animation/ValueAnimator.DurationScaleChangeListener listener) ` Unregisters a DurationScaleChangeListener. | ||
| From class ` https://developer.android.com/reference/android/animation/Animator ` |---|---| | ` void` | ` https://developer.android.com/reference/android/animation/Animator#addListener(android.animation.Animator.AnimatorListener)(https://developer.android.com/reference/android/animation/Animator.AnimatorListener listener) ` Adds a listener to the set of listeners that are sent events through the life of an animation, such as start, repeat, and end. | | ` void` | ` https://developer.android.com/reference/android/animation/Animator#addPauseListener(android.animation.Animator.AnimatorPauseListener)(https://developer.android.com/reference/android/animation/Animator.AnimatorPauseListener listener) ` Adds a pause listener to this animator. | | ` void` | ` https://developer.android.com/reference/android/animation/Animator#cancel()() ` Cancels the animation. | | ` https://developer.android.com/reference/android/animation/Animator` | ` https://developer.android.com/reference/android/animation/Animator#clone()() ` Creates and returns a copy of this object. | | ` void` | ` https://developer.android.com/reference/android/animation/Animator#end()() ` Ends the animation. | | ` abstract long` | ` https://developer.android.com/reference/android/animation/Animator#getDuration()() ` Gets the duration of the animation. | | ` https://developer.android.com/reference/android/animation/TimeInterpolator` | ` https://developer.android.com/reference/android/animation/Animator#getInterpolator()() ` Returns the timing interpolator that this animation uses. | | ` https://developer.android.com/reference/java/util/ArrayList<https://developer.android.com/reference/android/animation/Animator.AnimatorListener>` | ` https://developer.android.com/reference/android/animation/Animator#getListeners()() ` Gets the set of `https://developer.android.com/reference/android/animation/Animator.AnimatorListener` objects that are currently listening for events on this `Animator` object. | | ` abstract long` | ` https://developer.android.com/reference/android/animation/Animator#getStartDelay()() ` The amount of time, in milliseconds, to delay processing the animation after `https://developer.android.com/reference/android/animation/Animator#start()` is called. | | ` long` | ` https://developer.android.com/reference/android/animation/Animator#getTotalDuration()() ` Gets the total duration of the animation, accounting for animation sequences, start delay, and repeating. | | ` boolean` | ` https://developer.android.com/reference/android/animation/Animator#isPaused()() ` Returns whether this animator is currently in a paused state. | | ` abstract boolean` | ` https://developer.android.com/reference/android/animation/Animator#isRunning()() ` Returns whether this Animator is currently running (having been started and gone past any initial startDelay period and not yet ended). | | ` boolean` | ` https://developer.android.com/reference/android/animation/Animator#isStarted()() ` Returns whether this Animator has been started and not yet ended. | | ` void` | ` https://developer.android.com/reference/android/animation/Animator#pause()() ` Pauses a running animation. | | ` void` | ` https://developer.android.com/reference/android/animation/Animator#removeAllListeners()() ` Removes all `https://developer.android.com/reference/android/animation/Animator#addListener(android.animation.Animator.AnimatorListener)` and `https://developer.android.com/reference/android/animation/Animator#addPauseListener(android.animation.Animator.AnimatorPauseListener)` from this object. | | ` void` | ` https://developer.android.com/reference/android/animation/Animator#removeListener(android.animation.Animator.AnimatorListener)(https://developer.android.com/reference/android/animation/Animator.AnimatorListener listener) ` Removes a listener from the set listening to this animation. | | ` void` | ` https://developer.android.com/reference/android/animation/Animator#removePauseListener(android.animation.Animator.AnimatorPauseListener)(https://developer.android.com/reference/android/animation/Animator.AnimatorPauseListener listener) ` Removes a pause listener from the set listening to this animation. | | ` void` | ` https://developer.android.com/reference/android/animation/Animator#resume()() ` Resumes a paused animation, causing the animator to pick up where it left off when it was paused. | | ` abstract https://developer.android.com/reference/android/animation/Animator` | ` https://developer.android.com/reference/android/animation/Animator#setDuration(long)(long duration) ` Sets the duration of the animation. | | ` abstract void` | ` https://developer.android.com/reference/android/animation/Animator#setInterpolator(android.animation.TimeInterpolator)(https://developer.android.com/reference/android/animation/TimeInterpolator value) ` The time interpolator used in calculating the elapsed fraction of the animation. | | ` abstract void` | ` https://developer.android.com/reference/android/animation/Animator#setStartDelay(long)(long startDelay) ` The amount of time, in milliseconds, to delay processing the animation after `https://developer.android.com/reference/android/animation/Animator#start()` is called. | | ` void` | ` https://developer.android.com/reference/android/animation/Animator#setTarget(java.lang.Object)(https://developer.android.com/reference/java/lang/Object target) ` Sets the target object whose property will be animated by this animation. | | ` void` | ` https://developer.android.com/reference/android/animation/Animator#setupEndValues()() ` This method tells the object to use appropriate information to extract ending values for the animation. | | ` void` | ` https://developer.android.com/reference/android/animation/Animator#setupStartValues()() ` This method tells the object to use appropriate information to extract starting values for the animation. | | ` void` | ` https://developer.android.com/reference/android/animation/Animator#start()() ` Starts this animation. | ||
| From class ` https://developer.android.com/reference/java/lang/Object ` |---|---| | ` https://developer.android.com/reference/java/lang/Object` | ` https://developer.android.com/reference/java/lang/Object#clone()() ` Creates and returns a copy of this object. | | ` boolean` | ` https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object obj) ` Indicates whether some other object is "equal to" this one. | | ` void` | ` https://developer.android.com/reference/java/lang/Object#finalize()() ` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. | | ` final https://developer.android.com/reference/java/lang/Class<?>` | ` https://developer.android.com/reference/java/lang/Object#getClass()() ` Returns the runtime class of this `Object`. | | ` int` | ` https://developer.android.com/reference/java/lang/Object#hashCode()() ` Returns a hash code value for the object. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#notify()() ` Wakes up a single thread that is waiting on this object's monitor. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#notifyAll()() ` Wakes up all threads that are waiting on this object's monitor. | | ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/java/lang/Object#toString()() ` Returns a string representation of the object. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#wait(long,%20int)(long timeoutMillis, int nanos) ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#wait(long)(long timeoutMillis) ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#wait()() ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*. | ||

## Public constructors

### ObjectAnimator

Added in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public ObjectAnimator ()
```

Creates a new ObjectAnimator object. This default constructor is primarily for
use internally; the other constructors which take parameters are more generally
useful.

<br />

## Public methods

### clone

Added in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public ObjectAnimator clone ()
```

Creates and returns a copy of this object. The precise meaning
of "copy" may depend on the class of the object. The general
intent is that, for any object `x`, the expression:
>
> ```
>  x.clone() != x
> ```
will be true, and that the expression:
>
> ```
>  x.clone().getClass() == x.getClass()
> ```
will be `true`, but these are not absolute requirements. While it is typically the case that:
>
> ```
>  x.clone().equals(x)
> ```
will be `true`, this is not an absolute requirement.


By convention, the returned object should be obtained by calling
`super.clone`. If a class and all of its superclasses (except
`Object`) obey this convention, it will be the case that
`x.clone().getClass() == x.getClass()`.


By convention, the object returned by this method should be independent
of this object (which is being cloned). To achieve this independence,
it may be necessary to modify one or more fields of the object returned
by `super.clone` before returning it. Typically, this means
copying any mutable objects that comprise the internal "deep structure"
of the object being cloned and replacing the references to these
objects with references to the copies. If a class contains only
primitive fields or references to immutable objects, then it is usually
the case that no fields in the object returned by `super.clone`
need to be modified.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/animation/ObjectAnimator` | a clone of this instance. <br /> |

### getPropertyName

Added in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public String getPropertyName ()
```

Gets the name of the property that will be animated. This name will be used to derive
a setter function that will be called to set animated values.
For example, a property name of `foo` will result
in a call to the function `setFoo()` on the target object. If either
`valueFrom` or `valueTo` is null, then a getter function will
also be derived and called.

If this animator was created with a `https://developer.android.com/reference/android/util/Property` object instead of the
string name of a property, then this method will return the `https://developer.android.com/reference/android/util/Property#getName()` of that Property object instead. If this animator was
created with one or more `https://developer.android.com/reference/android/animation/PropertyValuesHolder` objects, then this method
will return the `https://developer.android.com/reference/android/animation/PropertyValuesHolder#getPropertyName()` of that
object (if there was just one) or a comma-separated list of all of the
names (if there are more than one).

<br />

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | <br /> |

### getTarget

Added in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public Object getTarget ()
```

The target object whose property will be animated by this animation

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/Object` | The object being animated. This value may be `null`. <br /> |

### ofArgb

Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static ObjectAnimator ofArgb (T target, 
                Property<T, Integer> property, 
                int... values)
```

Constructs and returns an ObjectAnimator that animates between color values. A single
value implies that that value is the one being animated to, in which case the start value
will be derived from the property being animated and the target object when `https://developer.android.com/reference/android/animation/ObjectAnimator#start()`
is called for the first time. Two values imply starting and ending values. More than two
values imply a starting value, values to animate through along the way, and an ending value
(these values will be distributed evenly across the duration of the animation).

<br />

| Parameters ||
|---|---|
| `target` | `T`: The object whose property is to be animated. <br /> |
| `property` | `Property`: The property being animated. <br /> |
| `values` | `int`: A set of values that the animation will animate between over time. <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/animation/ObjectAnimator` | An ObjectAnimator object that is set up to animate between the given values. <br /> |

### ofArgb

Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static ObjectAnimator ofArgb (Object target, 
                String propertyName, 
                int... values)
```

Constructs and returns an ObjectAnimator that animates between color values. A single
value implies that that value is the one being animated to, in which case the start value
will be derived from the property being animated and the target object when `https://developer.android.com/reference/android/animation/ObjectAnimator#start()`
is called for the first time. Two values imply starting and ending values. More than two
values imply a starting value, values to animate through along the way, and an ending value
(these values will be distributed evenly across the duration of the animation).

<br />

| Parameters ||
|---|---|
| `target` | `Object`: The object whose property is to be animated. This object should have a public method on it called `setName()`, where `name` is the value of the `propertyName` parameter. <br /> |
| `propertyName` | `String`: The name of the property being animated. <br /> |
| `values` | `int`: A set of values that the animation will animate between over time. <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/animation/ObjectAnimator` | An ObjectAnimator object that is set up to animate between the given values. <br /> |

### ofFloat

Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static ObjectAnimator ofFloat (Object target, 
                String xPropertyName, 
                String yPropertyName, 
                Path path)
```

Constructs and returns an ObjectAnimator that animates coordinates along a `Path`
using two properties. A `Path` animation moves in two dimensions, animating
coordinates `(x, y)` together to follow the line. In this variation, the
coordinates are floats that are set to separate properties designated by
`xPropertyName` and `yPropertyName`.

<br />

| Parameters ||
|---|---|
| `target` | `Object`: The object whose properties are to be animated. This object should have public methods on it called `setNameX()` and `setNameY`, where `nameX` and `nameY` are the value of the `xPropertyName` and `yPropertyName` parameters, respectively. <br /> |
| `xPropertyName` | `String`: The name of the property for the x coordinate being animated. <br /> |
| `yPropertyName` | `String`: The name of the property for the y coordinate being animated. <br /> |
| `path` | `Path`: The `Path` to animate values along. <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/animation/ObjectAnimator` | An ObjectAnimator object that is set up to animate along `path`. <br /> |

### ofFloat

Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static ObjectAnimator ofFloat (T target, 
                Property<T, Float> xProperty, 
                Property<T, Float> yProperty, 
                Path path)
```

Constructs and returns an ObjectAnimator that animates coordinates along a `Path`
using two properties. A `Path` animation moves in two dimensions, animating
coordinates `(x, y)` together to follow the line. In this variation, the
coordinates are floats that are set to separate properties, `xProperty` and
`yProperty`.

<br />

| Parameters ||
|---|---|
| `target` | `T`: The object whose properties are to be animated. <br /> |
| `xProperty` | `Property`: The property for the x coordinate being animated. <br /> |
| `yProperty` | `Property`: The property for the y coordinate being animated. <br /> |
| `path` | `Path`: The `Path` to animate values along. <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/animation/ObjectAnimator` | An ObjectAnimator object that is set up to animate along `path`. <br /> |

### ofFloat

Added in [API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static ObjectAnimator ofFloat (T target, 
                Property<T, Float> property, 
                float... values)
```

Constructs and returns an ObjectAnimator that animates between float values. A single
value implies that that value is the one being animated to, in which case the start value
will be derived from the property being animated and the target object when `https://developer.android.com/reference/android/animation/ObjectAnimator#start()`
is called for the first time. Two values imply starting and ending values. More than two
values imply a starting value, values to animate through along the way, and an ending value
(these values will be distributed evenly across the duration of the animation).

<br />

| Parameters ||
|---|---|
| `target` | `T`: The object whose property is to be animated. <br /> |
| `property` | `Property`: The property being animated. <br /> |
| `values` | `float`: A set of values that the animation will animate between over time. <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/animation/ObjectAnimator` | An ObjectAnimator object that is set up to animate between the given values. <br /> |

### ofFloat

Added in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static ObjectAnimator ofFloat (Object target, 
                String propertyName, 
                float... values)
```

Constructs and returns an ObjectAnimator that animates between float values. A single
value implies that that value is the one being animated to, in which case the start value
will be derived from the property being animated and the target object when `https://developer.android.com/reference/android/animation/ObjectAnimator#start()`
is called for the first time. Two values imply starting and ending values. More than two
values imply a starting value, values to animate through along the way, and an ending value
(these values will be distributed evenly across the duration of the animation).

<br />

| Parameters ||
|---|---|
| `target` | `Object`: The object whose property is to be animated. This object should have a public method on it called `setName()`, where `name` is the value of the `propertyName` parameter. <br /> |
| `propertyName` | `String`: The name of the property being animated. <br /> |
| `values` | `float`: A set of values that the animation will animate between over time. <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/animation/ObjectAnimator` | An ObjectAnimator object that is set up to animate between the given values. <br /> |

### ofInt

Added in [API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static ObjectAnimator ofInt (T target, 
                Property<T, Integer> property, 
                int... values)
```

Constructs and returns an ObjectAnimator that animates between int values. A single
value implies that that value is the one being animated to, in which case the start value
will be derived from the property being animated and the target object when `https://developer.android.com/reference/android/animation/ObjectAnimator#start()`
is called for the first time. Two values imply starting and ending values. More than two
values imply a starting value, values to animate through along the way, and an ending value
(these values will be distributed evenly across the duration of the animation).

<br />

| Parameters ||
|---|---|
| `target` | `T`: The object whose property is to be animated. <br /> |
| `property` | `Property`: The property being animated. <br /> |
| `values` | `int`: A set of values that the animation will animate between over time. <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/animation/ObjectAnimator` | An ObjectAnimator object that is set up to animate between the given values. <br /> |

### ofInt

Added in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static ObjectAnimator ofInt (Object target, 
                String propertyName, 
                int... values)
```

Constructs and returns an ObjectAnimator that animates between int values. A single
value implies that that value is the one being animated to, in which case the start value
will be derived from the property being animated and the target object when `https://developer.android.com/reference/android/animation/ObjectAnimator#start()`
is called for the first time. Two values imply starting and ending values. More than two
values imply a starting value, values to animate through along the way, and an ending value
(these values will be distributed evenly across the duration of the animation).

<br />

| Parameters ||
|---|---|
| `target` | `Object`: The object whose property is to be animated. This object should have a public method on it called `setName()`, where `name` is the value of the `propertyName` parameter. <br /> |
| `propertyName` | `String`: The name of the property being animated. <br /> |
| `values` | `int`: A set of values that the animation will animate between over time. <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/animation/ObjectAnimator` | An ObjectAnimator object that is set up to animate between the given values. <br /> |

### ofInt

Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static ObjectAnimator ofInt (T target, 
                Property<T, Integer> xProperty, 
                Property<T, Integer> yProperty, 
                Path path)
```

Constructs and returns an ObjectAnimator that animates coordinates along a `Path`
using two properties. A `Path` animation moves in two dimensions, animating
coordinates `(x, y)` together to follow the line. In this variation, the
coordinates are integers that are set to separate properties, `xProperty` and
`yProperty`.

<br />

| Parameters ||
|---|---|
| `target` | `T`: The object whose properties are to be animated. <br /> |
| `xProperty` | `Property`: The property for the x coordinate being animated. <br /> |
| `yProperty` | `Property`: The property for the y coordinate being animated. <br /> |
| `path` | `Path`: The `Path` to animate values along. <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/animation/ObjectAnimator` | An ObjectAnimator object that is set up to animate along `path`. <br /> |

### ofInt

Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static ObjectAnimator ofInt (Object target, 
                String xPropertyName, 
                String yPropertyName, 
                Path path)
```

Constructs and returns an ObjectAnimator that animates coordinates along a `Path`
using two properties. A `Path` animation moves in two dimensions, animating
coordinates `(x, y)` together to follow the line. In this variation, the
coordinates are integers that are set to separate properties designated by
`xPropertyName` and `yPropertyName`.

<br />

| Parameters ||
|---|---|
| `target` | `Object`: The object whose properties are to be animated. This object should have public methods on it called `setNameX()` and `setNameY`, where `nameX` and `nameY` are the value of `xPropertyName` and `yPropertyName` parameters, respectively. <br /> |
| `xPropertyName` | `String`: The name of the property for the x coordinate being animated. <br /> |
| `yPropertyName` | `String`: The name of the property for the y coordinate being animated. <br /> |
| `path` | `Path`: The `Path` to animate values along. <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/animation/ObjectAnimator` | An ObjectAnimator object that is set up to animate along `path`. <br /> |

### ofMultiFloat

Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static ObjectAnimator ofMultiFloat (Object target, 
                String propertyName, 
                TypeConverter<T, float[]> converter, 
                TypeEvaluator<T> evaluator, 
                T... values)
```

Constructs and returns an ObjectAnimator that animates over values for a multiple float
parameters setter. Only public methods that take only float parameters are supported.

At least two values must be provided, a start and end. More than two
values imply a starting value, values to animate through along the way, and an ending
value (these values will be distributed evenly across the duration of the animation).

<br />

<br />

| Parameters ||
|---|---|
| `target` | `Object`: The object whose property is to be animated. This object may have a public method on it called `setName()`, where `name` is the value of the `propertyName` parameter. `propertyName` may also be the case-sensitive complete name of the public setter method. <br /> |
| `propertyName` | `String`: The name of the property being animated or the name of the setter method. <br /> |
| `converter` | `TypeConverter`: Converts T objects into float parameters for the multi-value setter. <br /> |
| `evaluator` | `TypeEvaluator`: A TypeEvaluator that will be called on each animation frame to provide the necessary interpolation between the Object values to derive the animated value. <br /> |
| `values` | `T`: A set of values that the animation will animate between over time. <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/animation/ObjectAnimator` | An ObjectAnimator object that is set up to animate between the given values. <br /> |

### ofMultiFloat

Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static ObjectAnimator ofMultiFloat (Object target, 
                String propertyName, 
                float[][] values)
```

Constructs and returns an ObjectAnimator that animates over float values for a multiple
parameters setter. Only public methods that take only float parameters are supported.
Each `float[]` contains a complete set of parameters to the setter method.
At least two `float[]` values must be provided, a start and end. More than two
values imply a starting value, values to animate through along the way, and an ending
value (these values will be distributed evenly across the duration of the animation).

<br />

| Parameters ||
|---|---|
| `target` | `Object`: The object whose property is to be animated. This object may have a public method on it called `setName()`, where `name` is the value of the `propertyName` parameter. `propertyName` may also be the case-sensitive complete name of the public setter method. <br /> |
| `propertyName` | `String`: The name of the property being animated or the name of the setter method. <br /> |
| `values` | `float`: A set of values that the animation will animate between over time. <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/animation/ObjectAnimator` | An ObjectAnimator object that is set up to animate between the given values. <br /> |

### ofMultiFloat

Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static ObjectAnimator ofMultiFloat (Object target, 
                String propertyName, 
                Path path)
```

Constructs and returns an ObjectAnimator that animates the target using a multi-float setter
along the given `Path`. A `Path` animation moves in two dimensions,
animating coordinates `(x, y)` together to follow the line. In this variation, the
coordinates are float x and y coordinates used in the first and second parameter of the
setter, respectively.

<br />

| Parameters ||
|---|---|
| `target` | `Object`: The object whose property is to be animated. This object may have a public method on it called `setName()`, where `name` is the value of the `propertyName` parameter. `propertyName` may also be the case-sensitive complete name of the public setter method. <br /> |
| `propertyName` | `String`: The name of the property being animated or the name of the setter method. <br /> |
| `path` | `Path`: The `Path` to animate values along. <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/animation/ObjectAnimator` | An ObjectAnimator object that is set up to animate along `path`. <br /> |

### ofMultiInt

Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static ObjectAnimator ofMultiInt (Object target, 
                String propertyName, 
                int[][] values)
```

Constructs and returns an ObjectAnimator that animates over int values for a multiple
parameters setter. Only public methods that take only int parameters are supported.
Each `int[]` contains a complete set of parameters to the setter method.
At least two `int[]` values must be provided, a start and end. More than two
values imply a starting value, values to animate through along the way, and an ending
value (these values will be distributed evenly across the duration of the animation).

<br />

| Parameters ||
|---|---|
| `target` | `Object`: The object whose property is to be animated. This object may have a public method on it called `setName()`, where `name` is the value of the `propertyName` parameter. `propertyName` may also be the case-sensitive complete name of the public setter method. <br /> |
| `propertyName` | `String`: The name of the property being animated or the name of the setter method. <br /> |
| `values` | `int`: A set of values that the animation will animate between over time. <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/animation/ObjectAnimator` | An ObjectAnimator object that is set up to animate between the given values. <br /> |

### ofMultiInt

Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static ObjectAnimator ofMultiInt (Object target, 
                String propertyName, 
                Path path)
```

Constructs and returns an ObjectAnimator that animates the target using a multi-int setter
along the given `Path`. A `Path` animation moves in two dimensions,
animating coordinates `(x, y)` together to follow the line. In this variation, the
coordinates are integer x and y coordinates used in the first and second parameter of the
setter, respectively.

<br />

| Parameters ||
|---|---|
| `target` | `Object`: The object whose property is to be animated. This object may have a public method on it called `setName()`, where `name` is the value of the `propertyName` parameter. `propertyName` may also be the case-sensitive complete name of the public setter method. <br /> |
| `propertyName` | `String`: The name of the property being animated or the name of the setter method. <br /> |
| `path` | `Path`: The `Path` to animate values along. <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/animation/ObjectAnimator` | An ObjectAnimator object that is set up to animate along `path`. <br /> |

### ofMultiInt

Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static ObjectAnimator ofMultiInt (Object target, 
                String propertyName, 
                TypeConverter<T, int[]> converter, 
                TypeEvaluator<T> evaluator, 
                T... values)
```

Constructs and returns an ObjectAnimator that animates over values for a multiple int
parameters setter. Only public methods that take only int parameters are supported.

At least two values must be provided, a start and end. More than two
values imply a starting value, values to animate through along the way, and an ending
value (these values will be distributed evenly across the duration of the animation).

<br />

<br />

| Parameters ||
|---|---|
| `target` | `Object`: The object whose property is to be animated. This object may have a public method on it called `setName()`, where `name` is the value of the `propertyName` parameter. `propertyName` may also be the case-sensitive complete name of the public setter method. <br /> |
| `propertyName` | `String`: The name of the property being animated or the name of the setter method. <br /> |
| `converter` | `TypeConverter`: Converts T objects into int parameters for the multi-value setter. <br /> |
| `evaluator` | `TypeEvaluator`: A TypeEvaluator that will be called on each animation frame to provide the necessary interpolation between the Object values to derive the animated value. <br /> |
| `values` | `T`: A set of values that the animation will animate between over time. <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/animation/ObjectAnimator` | An ObjectAnimator object that is set up to animate between the given values. <br /> |

### ofObject

Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static ObjectAnimator ofObject (T target, 
                Property<T, V> property, 
                TypeConverter<PointF, V> converter, 
                Path path)
```

Constructs and returns an ObjectAnimator that animates a property along a `Path`.
A `Path` animation moves in two dimensions, animating coordinates
`(x, y)` together to follow the line. This variant animates the coordinates
in a `PointF` to follow the `Path`. If `property`
uses a type other than `PointF`, `converter` can be used to change
from `PointF` to the type associated with the `Property`.

The PointF passed to `converter` or `property`, if
`converter` is `null`, is reused on each animation frame and should
not be stored by the setter or TypeConverter.

<br />

<br />

| Parameters ||
|---|---|
| `target` | `T`: The object whose property is to be animated. <br /> |
| `property` | `Property`: The property being animated. Should not be null. <br /> |
| `converter` | `TypeConverter`: Converts a PointF to the type associated with the setter. May be null if conversion is unnecessary. <br /> |
| `path` | `Path`: The `Path` to animate values along. <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/animation/ObjectAnimator` | An ObjectAnimator object that is set up to animate along `path`. <br /> |

### ofObject

Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static ObjectAnimator ofObject (T target, 
                Property<T, P> property, 
                TypeConverter<V, P> converter, 
                TypeEvaluator<V> evaluator, 
                V... values)
```

Constructs and returns an ObjectAnimator that animates between Object values. A single
value implies that that value is the one being animated to, in which case the start value
will be derived from the property being animated and the target object when `https://developer.android.com/reference/android/animation/ObjectAnimator#start()`
is called for the first time. Two values imply starting and ending values. More than two
values imply a starting value, values to animate through along the way, and an ending value
(these values will be distributed evenly across the duration of the animation).
This variant supplies a `TypeConverter` to convert from the animated values to the
type of the property. If only one value is supplied, the `TypeConverter` must be a
`https://developer.android.com/reference/android/animation/BidirectionalTypeConverter` to retrieve the current value.

**Note:** The values are stored as references to the original
objects, which means that changes to those objects after this method is called will
affect the values on the animator. If the objects will be mutated externally after
this method is called, callers should pass a copy of those objects instead.

<br />

| Parameters ||
|---|---|
| `target` | `T`: The object whose property is to be animated. <br /> |
| `property` | `Property`: The property being animated. <br /> |
| `converter` | `TypeConverter`: Converts the animated object to the Property type. <br /> |
| `evaluator` | `TypeEvaluator`: A TypeEvaluator that will be called on each animation frame to provide the necessary interpolation between the Object values to derive the animated value. <br /> |
| `values` | `V`: A set of values that the animation will animate between over time. <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/animation/ObjectAnimator` | An ObjectAnimator object that is set up to animate between the given values. This value cannot be `null`. <br /> |

### ofObject

Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static ObjectAnimator ofObject (Object target, 
                String propertyName, 
                TypeConverter<PointF, ?> converter, 
                Path path)
```

Constructs and returns an ObjectAnimator that animates a property along a `Path`.
A `Path` animation moves in two dimensions, animating coordinates
`(x, y)` together to follow the line. This variant animates the coordinates
in a `PointF` to follow the `Path`. If the `Property`
associated with `propertyName` uses a type other than `PointF`,
`converter` can be used to change from `PointF` to the type
associated with the `Property`.

<br />

| Parameters ||
|---|---|
| `target` | `Object`: The object whose property is to be animated. This object should have a public method on it called `setName()`, where `name` is the value of the `propertyName` parameter. <br /> |
| `propertyName` | `String`: The name of the property being animated. <br /> |
| `converter` | `TypeConverter`: Converts a PointF to the type associated with the setter. May be null if conversion is unnecessary. <br /> |
| `path` | `Path`: The `Path` to animate values along. <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/animation/ObjectAnimator` | An ObjectAnimator object that is set up to animate along `path`. This value cannot be `null`. <br /> |

### ofObject

Added in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static ObjectAnimator ofObject (Object target, 
                String propertyName, 
                TypeEvaluator<T> evaluator, 
                Object... values)
```

Constructs and returns an ObjectAnimator that animates between Object values. A single
value implies that that value is the one being animated to, in which case the start value
will be derived from the property being animated and the target object when `https://developer.android.com/reference/android/animation/ObjectAnimator#start()`
is called for the first time. Two values imply starting and ending values. More than two
values imply a starting value, values to animate through along the way, and an ending value
(these values will be distributed evenly across the duration of the animation).

**Note:** The values are stored as references to the original
objects, which means that changes to those objects after this method is called will
affect the values on the animator. If the objects will be mutated externally after
this method is called, callers should pass a copy of those objects instead.

<br />

| Parameters ||
|---|---|
| `target` | `Object`: The object whose property is to be animated. This object should have a public method on it called `setName()`, where `name` is the value of the `propertyName` parameter. <br /> |
| `propertyName` | `String`: The name of the property being animated. <br /> |
| `evaluator` | `TypeEvaluator`: A TypeEvaluator that will be called on each animation frame to provide the necessary interpolation between the Object values to derive the animated value. <br /> |
| `values` | `Object`: A set of values that the animation will animate between over time. <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/animation/ObjectAnimator` | An ObjectAnimator object that is set up to animate between the given values. <br /> |

### ofObject

Added in [API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static ObjectAnimator ofObject (T target, 
                Property<T, V> property, 
                TypeEvaluator<V> evaluator, 
                V... values)
```

Constructs and returns an ObjectAnimator that animates between Object values. A single
value implies that that value is the one being animated to, in which case the start value
will be derived from the property being animated and the target object when `https://developer.android.com/reference/android/animation/ObjectAnimator#start()`
is called for the first time. Two values imply starting and ending values. More than two
values imply a starting value, values to animate through along the way, and an ending value
(these values will be distributed evenly across the duration of the animation).

**Note:** The values are stored as references to the original
objects, which means that changes to those objects after this method is called will
affect the values on the animator. If the objects will be mutated externally after
this method is called, callers should pass a copy of those objects instead.

<br />

| Parameters ||
|---|---|
| `target` | `T`: The object whose property is to be animated. <br /> |
| `property` | `Property`: The property being animated. <br /> |
| `evaluator` | `TypeEvaluator`: A TypeEvaluator that will be called on each animation frame to provide the necessary interpolation between the Object values to derive the animated value. <br /> |
| `values` | `V`: A set of values that the animation will animate between over time. <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/animation/ObjectAnimator` | An ObjectAnimator object that is set up to animate between the given values. This value cannot be `null`. <br /> |

### ofPropertyValuesHolder

Added in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static ObjectAnimator ofPropertyValuesHolder (Object target, 
                PropertyValuesHolder... values)
```

Constructs and returns an ObjectAnimator that animates between the sets of values specified
in `PropertyValueHolder` objects. This variant should be used when animating
several properties at once with the same ObjectAnimator, since PropertyValuesHolder allows
you to associate a set of animation values with a property name.

<br />

| Parameters ||
|---|---|
| `target` | `Object`: The object whose property is to be animated. Depending on how the PropertyValuesObjects were constructed, the target object should either have the `https://developer.android.com/reference/android/util/Property` objects used to construct the PropertyValuesHolder objects or (if the PropertyValuesHOlder objects were created with property names) the target object should have public methods on it called `setName()`, where `name` is the name of the property passed in as the `propertyName` parameter for each of the PropertyValuesHolder objects. <br /> |
| `values` | `PropertyValuesHolder`: A set of PropertyValuesHolder objects whose values will be animated between over time. <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/animation/ObjectAnimator` | An ObjectAnimator object that is set up to animate between the given values. This value cannot be `null`. <br /> |

### setAutoCancel

Added in [API level 18](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void setAutoCancel (boolean cancel)
```

autoCancel controls whether an ObjectAnimator will be canceled automatically
when any other ObjectAnimator with the same target and properties is started.
Setting this flag may make it easier to run different animators on the same target
object without having to keep track of whether there are conflicting animators that
need to be manually canceled. Canceling animators must have the same exact set of
target properties, in the same order.

<br />

| Parameters ||
|---|---|
| `cancel` | `boolean`: Whether future ObjectAnimators with the same target and properties as this ObjectAnimator will cause this ObjectAnimator to be canceled. <br /> |

### setDuration

Added in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public ObjectAnimator setDuration (long duration)
```

Sets the length of the animation. The default duration is 300 milliseconds.

<br />

| Parameters ||
|---|---|
| `duration` | `long`: The length of the animation, in milliseconds. <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/animation/ObjectAnimator` | ObjectAnimator The object called with setDuration(). This return value makes it easier to compose statements together that construct and then set the duration, as in `ObjectAnimator.ofInt(target, propertyName, 0, 10).setDuration(500).start()`. This value cannot be `null`. <br /> |

### setFloatValues

Added in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void setFloatValues (float... values)
```

Sets float values that will be animated between. A single
value implies that that value is the one being animated to. However, this is not typically
useful in a ValueAnimator object because there is no way for the object to determine the
starting value for the animation (unlike ObjectAnimator, which can derive that value
from the target object and property being animated). Therefore, there should typically
be two or more values.

If there are already multiple sets of values defined for this ValueAnimator via more
than one PropertyValuesHolder object, this method will set the values for the first
of those objects.

<br />

<br />

| Parameters ||
|---|---|
| `values` | `float`: A set of values that the animation will animate between over time. <br /> |

### setIntValues

Added in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void setIntValues (int... values)
```

Sets int values that will be animated between. A single
value implies that that value is the one being animated to. However, this is not typically
useful in a ValueAnimator object because there is no way for the object to determine the
starting value for the animation (unlike ObjectAnimator, which can derive that value
from the target object and property being animated). Therefore, there should typically
be two or more values.

If there are already multiple sets of values defined for this ValueAnimator via more
than one PropertyValuesHolder object, this method will set the values for the first
of those objects.

<br />

<br />

| Parameters ||
|---|---|
| `values` | `int`: A set of values that the animation will animate between over time. <br /> |

### setObjectValues

Added in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void setObjectValues (Object... values)
```

Sets the values to animate between for this animation. A single
value implies that that value is the one being animated to. However, this is not typically
useful in a ValueAnimator object because there is no way for the object to determine the
starting value for the animation (unlike ObjectAnimator, which can derive that value
from the target object and property being animated). Therefore, there should typically
be two or more values.

**Note:** The Object values are stored as references to the original
objects, which means that changes to those objects after this method is called will
affect the values on the animator. If the objects will be mutated externally after
this method is called, callers should pass a copy of those objects instead.

If there are already multiple sets of values defined for this ValueAnimator via more
than one PropertyValuesHolder object, this method will set the values for the first
of those objects.

There should be a TypeEvaluator set on the ValueAnimator that knows how to interpolate
between these value objects. ValueAnimator only knows how to interpolate between the
primitive types specified in the other setValues() methods.

<br />

<br />

| Parameters ||
|---|---|
| `values` | `Object`: The set of values to animate between. <br /> |

### setProperty

Added in [API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void setProperty (Property<T, V> property)
```

Sets the property that will be animated. Property objects will take precedence over
properties specified by the `https://developer.android.com/reference/android/animation/ObjectAnimator#setPropertyName(java.lang.String)` method. Animations should
be set up to use one or the other, not both.

<br />

| Parameters ||
|---|---|
| `property` | `Property`: The property being animated. Should not be null. <br /> |

### setPropertyName

Added in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void setPropertyName (String propertyName)
```

Sets the name of the property that will be animated. This name is used to derive
a setter function that will be called to set animated values.
For example, a property name of `foo` will result
in a call to the function `setFoo()` on the target object. If either
`valueFrom` or `valueTo` is null, then a getter function will
also be derived and called.

For best performance of the mechanism that calls the setter function determined by the
name of the property being animated, use `float` or `int` typed values,
and make the setter function for those properties have a `void` return value. This
will cause the code to take an optimized path for these constrained circumstances. Other
property types and return types will work, but will have more overhead in processing
the requests due to normal reflection mechanisms.

Note that the setter function derived from this property name
must take the same parameter type as the
`valueFrom` and `valueTo` properties, otherwise the call to
the setter function will fail.

If this ObjectAnimator has been set up to animate several properties together,
using more than one PropertyValuesHolder objects, then setting the propertyName simply
sets the propertyName in the first of those PropertyValuesHolder objects.

<br />

<br />

| Parameters ||
|---|---|
| `propertyName` | `String`: The name of the property being animated. Should not be null. <br /> |

### setTarget

Added in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void setTarget (Object target)
```

Sets the target object whose property will be animated by this animation. Not all subclasses
operate on target objects (for example, `https://developer.android.com/reference/android/animation/ValueAnimator`, but this method
is on the superclass for the convenience of dealing generically with those subclasses
that do handle targets.

<br />

| Parameters ||
|---|---|
| `target` | `Object`: This value may be `null`. <br /> |

### setupEndValues

Added in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void setupEndValues ()
```

This method tells the object to use appropriate information to extract
ending values for the animation. For example, a AnimatorSet object will pass
this call to its child objects to tell them to set up the values. A
ObjectAnimator object will use the information it has about its target object
and PropertyValuesHolder objects to get the start values for its properties.
A ValueAnimator object will ignore the request since it does not have enough
information (such as a target object) to gather these values.

<br />

### setupStartValues

Added in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void setupStartValues ()
```

This method tells the object to use appropriate information to extract
starting values for the animation. For example, a AnimatorSet object will pass
this call to its child objects to tell them to set up the values. A
ObjectAnimator object will use the information it has about its target object
and PropertyValuesHolder objects to get the start values for its properties.
A ValueAnimator object will ignore the request since it does not have enough
information (such as a target object) to gather these values.

<br />

### start

Added in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void start ()
```

Starts this animation. If the animation has a nonzero startDelay, the animation will start
running after that delay elapses. A non-delayed animation will have its initial
value(s) set immediately, followed by calls to
`https://developer.android.com/reference/android/animation/Animator.AnimatorListener#onAnimationStart(android.animation.Animator)` for any listeners of this animator.

The animation started by calling this method will be run on the thread that called
this method. This thread should have a Looper on it (a runtime exception will be thrown if
this is not the case). Also, if the animation will animate
properties of objects in the view hierarchy, then the calling thread should be the UI
thread for that view hierarchy.

<br />

<br />

### toString

Added in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public String toString ()
```

Returns a string representation of the object.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | This value cannot be `null`. <br /> |