ofPropertyValuesHolder

Constructs and returns an ObjectAnimator a ModelAnimation applying PropertyValuesHolders.

  • A single value implies that that value is the one being animated to starting from the actual value on the provided ModelAnimation.
  • Two values imply a 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).

The properties (time, frame,... position) are applied to the AnimatableModelThis method applies by default this to the returned ObjectAnimator :

  • The interpolator to LinearInterpolator in order to match the natural animation interpolation.

Don't forget to call start

Return

The constructed ObjectAnimator

Parameters

model

The targeted model to animate

values

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