Share via


ObjectAnimator.OfMultiFloat Method

Definition

Overloads

OfMultiFloat(Object, String, Single[][])

Constructs and returns an ObjectAnimator that animates over float values for a multiple parameters setter.

OfMultiFloat(Object, String, TypeConverter, ITypeEvaluator, Object[])

Constructs and returns an ObjectAnimator that animates over values for a multiple float parameters setter.

OfMultiFloat(Object, String, Path)

Constructs and returns an ObjectAnimator that animates the target using a multi-float setter along the given Path.

OfMultiFloat(Object, String, Single[][])

Constructs and returns an ObjectAnimator that animates over float values for a multiple parameters setter.

[Android.Runtime.Register("ofMultiFloat", "(Ljava/lang/Object;Ljava/lang/String;[[F)Landroid/animation/ObjectAnimator;", "")]
public static Android.Animation.ObjectAnimator? OfMultiFloat (Java.Lang.Object? target, string? propertyName, float[][]? values);
[<Android.Runtime.Register("ofMultiFloat", "(Ljava/lang/Object;Ljava/lang/String;[[F)Landroid/animation/ObjectAnimator;", "")>]
static member OfMultiFloat : Java.Lang.Object * string * single[][] -> Android.Animation.ObjectAnimator

Parameters

target
Object

The object whose property is to be animated. This object may have a public method on it called setName(), where name is the value of the propertyName parameter. propertyName may also be the case-sensitive complete name of the public setter method.

propertyName
String

The name of the property being animated or the name of the setter method.

values
Single[][]

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 over float values for a multiple parameters setter. Only public methods that take only float parameters are supported. Each float[] contains a complete set of parameters to the setter method. At least two float[] values must be provided, a start and end. 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.ofMultiFloat(java.lang.Object, java.lang.String, float[][]).

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

OfMultiFloat(Object, String, TypeConverter, ITypeEvaluator, Object[])

Constructs and returns an ObjectAnimator that animates over values for a multiple float parameters setter.

[Android.Runtime.Register("ofMultiFloat", "(Ljava/lang/Object;Ljava/lang/String;Landroid/animation/TypeConverter;Landroid/animation/TypeEvaluator;[Ljava/lang/Object;)Landroid/animation/ObjectAnimator;", "")]
[Java.Interop.JavaTypeParameters(new System.String[] { "T" })]
public static Android.Animation.ObjectAnimator? OfMultiFloat (Java.Lang.Object? target, string? propertyName, Android.Animation.TypeConverter? converter, Android.Animation.ITypeEvaluator? evaluator, params Java.Lang.Object[]? values);
[<Android.Runtime.Register("ofMultiFloat", "(Ljava/lang/Object;Ljava/lang/String;Landroid/animation/TypeConverter;Landroid/animation/TypeEvaluator;[Ljava/lang/Object;)Landroid/animation/ObjectAnimator;", "")>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "T" })>]
static member OfMultiFloat : Java.Lang.Object * string * Android.Animation.TypeConverter * Android.Animation.ITypeEvaluator * Java.Lang.Object[] -> Android.Animation.ObjectAnimator

Parameters

target
Object

The object whose property is to be animated. This object may have a public method on it called setName(), where name is the value of the propertyName parameter. propertyName may also be the case-sensitive complete name of the public setter method.

propertyName
String

The name of the property being animated or the name of the setter method.

converter
TypeConverter

Converts T objects into float parameters for the multi-value setter.

evaluator
ITypeEvaluator

A TypeEvaluator that will be called on each animation frame to provide the necessary interpolation between the Object values to derive the animated value.

values
Object[]

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 over values for a multiple float parameters setter. Only public methods that take only float parameters are supported.

At least two values must be provided, a start and end. 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.ofMultiFloat(java.lang.Object, java.lang.String, android.animation.TypeConverter<T, float[]>, android.animation.TypeEvaluator<T>, T...).

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

OfMultiFloat(Object, String, Path)

Constructs and returns an ObjectAnimator that animates the target using a multi-float setter along the given Path.

[Android.Runtime.Register("ofMultiFloat", "(Ljava/lang/Object;Ljava/lang/String;Landroid/graphics/Path;)Landroid/animation/ObjectAnimator;", "")]
public static Android.Animation.ObjectAnimator? OfMultiFloat (Java.Lang.Object? target, string? propertyName, Android.Graphics.Path? path);
[<Android.Runtime.Register("ofMultiFloat", "(Ljava/lang/Object;Ljava/lang/String;Landroid/graphics/Path;)Landroid/animation/ObjectAnimator;", "")>]
static member OfMultiFloat : Java.Lang.Object * string * Android.Graphics.Path -> Android.Animation.ObjectAnimator

Parameters

target
Object

The object whose property is to be animated. This object may have a public method on it called setName(), where name is the value of the propertyName parameter. propertyName may also be the case-sensitive complete name of the public setter method.

propertyName
String

The name of the property being animated or the name of the setter method.

path
Path

The Path to animate values along.

Returns

An ObjectAnimator object that is set up to animate along path.

Attributes

Remarks

Constructs and returns an ObjectAnimator that animates the target using a multi-float setter along the given Path. A Path</> animation moves in two dimensions, animating coordinates (x, y) together to follow the line. In this variation, the coordinates are float x and y coordinates used in the first and second parameter of the setter, respectively.

Java documentation for android.animation.ObjectAnimator.ofMultiFloat(java.lang.Object, java.lang.String, android.graphics.Path).

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