次の方法で共有


ValueAnimator.OfInt(Int32[]) Method

Definition

Constructs and returns a ValueAnimator that animates between int values.

[Android.Runtime.Register("ofInt", "([I)Landroid/animation/ValueAnimator;", "")]
public static Android.Animation.ValueAnimator? OfInt (params int[]? values);
[<Android.Runtime.Register("ofInt", "([I)Landroid/animation/ValueAnimator;", "")>]
static member OfInt : int[] -> Android.Animation.ValueAnimator

Parameters

values
Int32[]

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

Returns

A ValueAnimator object that is set up to animate between the given values.

Attributes

Remarks

Constructs and returns a ValueAnimator that animates between int values. 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.

Java documentation for android.animation.ValueAnimator.ofInt(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