Udostępnij za pośrednictwem


ObjectAnimator.OfArgb Method

Definition

Overloads

OfArgb(Object, Property, Int32[])

Constructs and returns an ObjectAnimator that animates between color values.

OfArgb(Object, String, Int32[])

Constructs and returns an ObjectAnimator that animates between color values.

OfArgb(Object, Property, Int32[])

Constructs and returns an ObjectAnimator that animates between color values.

[Android.Runtime.Register("ofArgb", "(Ljava/lang/Object;Landroid/util/Property;[I)Landroid/animation/ObjectAnimator;", "")]
[Java.Interop.JavaTypeParameters(new System.String[] { "T" })]
public static Android.Animation.ObjectAnimator? OfArgb (Java.Lang.Object? target, Android.Util.Property? property, params int[]? values);
[<Android.Runtime.Register("ofArgb", "(Ljava/lang/Object;Landroid/util/Property;[I)Landroid/animation/ObjectAnimator;", "")>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "T" })>]
static member OfArgb : Java.Lang.Object * Android.Util.Property * int[] -> Android.Animation.ObjectAnimator

Parameters

target
Object

The object whose property is to be animated.

property
Property

The property being animated.

values
Int32[]

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

Returns

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

Attributes

Remarks

Constructs and returns an ObjectAnimator that animates between color values. A single value implies that that value is the one being animated to, in which case the start value will be derived from the property being animated and the target object when #start() is called for the first time. Two values imply 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).

Java documentation for android.animation.ObjectAnimator.ofArgb(T, android.util.Property<T, java.lang.Integer>, 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

OfArgb(Object, String, Int32[])

Constructs and returns an ObjectAnimator that animates between color values.

[Android.Runtime.Register("ofArgb", "(Ljava/lang/Object;Ljava/lang/String;[I)Landroid/animation/ObjectAnimator;", "")]
public static Android.Animation.ObjectAnimator? OfArgb (Java.Lang.Object? target, string? propertyName, params int[]? values);
[<Android.Runtime.Register("ofArgb", "(Ljava/lang/Object;Ljava/lang/String;[I)Landroid/animation/ObjectAnimator;", "")>]
static member OfArgb : Java.Lang.Object * string * int[] -> Android.Animation.ObjectAnimator

Parameters

target
Object

The object whose property is to be animated. This object should have a public method on it called setName(), where name is the value of the propertyName parameter.

propertyName
String

The name of the property being animated.

values
Int32[]

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

Returns

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

Attributes

Remarks

Constructs and returns an ObjectAnimator that animates between color values. A single value implies that that value is the one being animated to, in which case the start value will be derived from the property being animated and the target object when #start() is called for the first time. Two values imply 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).

Java documentation for android.animation.ObjectAnimator.ofArgb(java.lang.Object, java.lang.String, 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