PropertyValuesHolder

public class PropertyValuesHolder


This class holds information about a property and the values that that property should take on during an animation. PropertyValuesHolder objects can be used to create animations with ValueAnimator or ObjectAnimator that operate on several different properties in parallel.

Summary

Public constructors

Public methods

@NonNull @Override PropertyValuesHolder
@NonNull String

Gets the name of the property that will be animated.

static @NonNull PropertyValuesHolder
ofFloat(@NonNull String propertyName, float[] values)

Constructs and returns a PropertyValuesHolder with a given property name and set of float values.

static @NonNull PropertyValuesHolder
ofFloat(@NonNull Property<ObjectFloat> property, float[] values)

Constructs and returns a PropertyValuesHolder with a given property and set of float values.

static @NonNull PropertyValuesHolder
ofInt(@NonNull String propertyName, int[] values)

Constructs and returns a PropertyValuesHolder with a given property name and set of int values.

static @NonNull PropertyValuesHolder
ofInt(@NonNull Property<ObjectInteger> property, int[] values)

Constructs and returns a PropertyValuesHolder with a given property and set of int values.

static @SafeVarargs @NonNull PropertyValuesHolder
ofKeyframe(@NonNull String propertyName, Keyframe[] values)

Constructs and returns a PropertyValuesHolder object with the specified property name and set of values.

static @SafeVarargs @NonNull PropertyValuesHolder
ofKeyframe(@NonNull Property property, Keyframe[] values)

Constructs and returns a PropertyValuesHolder object with the specified property and set of values.

static @NonNull PropertyValuesHolder
ofMultiFloat(@NonNull String propertyName, float[][] values)

Constructs and returns a PropertyValuesHolder with a given property name and set of float[] values.

static @NonNull PropertyValuesHolder
ofMultiFloat(@NonNull String propertyName, @NonNull Path path)

Constructs and returns a PropertyValuesHolder with a given property name to use as a multi-float setter.

static @SafeVarargs @NonNull PropertyValuesHolder
<V>