Compartir a través de


ObjectAnimator.OfPropertyValuesHolder(Object, PropertyValuesHolder[]) Method

Definition

Constructs and returns an ObjectAnimator that animates between the sets of values specified in <code>PropertyValueHolder</code> objects.

[Android.Runtime.Register("ofPropertyValuesHolder", "(Ljava/lang/Object;[Landroid/animation/PropertyValuesHolder;)Landroid/animation/ObjectAnimator;", "")]
public static Android.Animation.ObjectAnimator OfPropertyValuesHolder (Java.Lang.Object? target, params Android.Animation.PropertyValuesHolder[]? values);
[<Android.Runtime.Register("ofPropertyValuesHolder", "(Ljava/lang/Object;[Landroid/animation/PropertyValuesHolder;)Landroid/animation/ObjectAnimator;", "")>]
static member OfPropertyValuesHolder : Java.Lang.Object * Android.Animation.PropertyValuesHolder[] -> Android.Animation.ObjectAnimator

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 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 <code>setName()</code>, where <code>name</code> is the name of the property passed in as the <code>propertyName</code> parameter for each of the PropertyValuesHolder objects.

values
PropertyValuesHolder[]

A set of PropertyValuesHolder objects whose values will be animated between over time.

Returns

An ObjectAnimator object that is set up to animate between the given values.

Attributes

Remarks

Java documentation for android.animation.ObjectAnimator.ofPropertyValuesHolder(java.lang.Object, android.animation.PropertyValuesHolder).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to