Udostępnij za pośrednictwem


ValueAnimator.SetIntValues(Int32[]) Method

Definition

Sets int values that will be animated between.

[Android.Runtime.Register("setIntValues", "([I)V", "GetSetIntValues_arrayIHandler")]
public virtual void SetIntValues (params int[]? values);
[<Android.Runtime.Register("setIntValues", "([I)V", "GetSetIntValues_arrayIHandler")>]
abstract member SetIntValues : int[] -> unit
override this.SetIntValues : int[] -> unit

Parameters

values
Int32[]

A set of values that the animation will animate between over time.

Attributes

Remarks

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.

Java documentation for android.animation.ValueAnimator.setIntValues(int...).

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