PropertyValuesHolder.OfMultiFloat Method

Definition

Overloads

OfMultiFloat(String, Path)

Constructs and returns a PropertyValuesHolder with a given property name to use as a multi-float setter.

OfMultiFloat(String, Single[][])

Constructs and returns a PropertyValuesHolder with a given property name and set of float[] values.

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

Constructs and returns a PropertyValuesHolder object with the specified property name or setter name for use in a multi-float setter function using ObjectAnimator.

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

Constructs and returns a PropertyValuesHolder with a given property and set of Object values for use with ObjectAnimator multi-value setters.

OfMultiFloat(String, Path)

Constructs and returns a PropertyValuesHolder with a given property name to use as a multi-float setter.

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

Parameters

propertyName
String

The name of the property being animated. Can also be the case-sensitive name of the entire setter method. Should not be null. The setter must take exactly two float parameters.

path
Path

The Path along which the values should be animated.

Returns

PropertyValuesHolder The constructed PropertyValuesHolder object.

Attributes

Remarks

Constructs and returns a PropertyValuesHolder with a given property name to use as a multi-float setter. The values are animated along the path, with the first parameter of the setter set to the x coordinate and the second set to the y coordinate.

Java documentation for android.animation.PropertyValuesHolder.ofMultiFloat(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

OfMultiFloat(String, Single[][])

Constructs and returns a PropertyValuesHolder with a given property name and set of float[] values.

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

Parameters

propertyName
String

The name of the property being animated. Can also be the case-sensitive name of the entire setter method. Should not be null.

values
Single[][]

The values that the property will animate between.

Returns

PropertyValuesHolder The constructed PropertyValuesHolder object.

Attributes

Remarks

Constructs and returns a PropertyValuesHolder with a given property name and set of float[] values. At least two float[] values must be supplied, a start and end value. If more values are supplied, the values will be animated from the start, through all intermediate values to the end value. When used with ObjectAnimator, the elements of the array represent the parameters of the setter function.

Java documentation for android.animation.PropertyValuesHolder.ofMultiFloat(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.

See also

  • <xref:Android.Animation.FloatArrayEvaluator(System.Single%5b%5d)>

Applies to

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

Constructs and returns a PropertyValuesHolder object with the specified property name or setter name for use in a multi-float setter function using ObjectAnimator.

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

Parameters

propertyName
String

The name of the property to associate with the set of values. This may also be the complete name of a setter function.

converter
TypeConverter

Converts <code>values</code> into float parameters for the setter. Can be null if the Keyframes have float[] values.

evaluator
ITypeEvaluator

Used to interpolate between values.

values
Keyframe[]

The values at specific fractional times to evaluate between

Returns

A PropertyValuesHolder for a multi-float parameter setter.

Attributes

Remarks

Java documentation for android.animation.PropertyValuesHolder.ofMultiFloat(java.lang.String, android.animation.TypeConverter, android.animation.TypeEvaluator, android.animation.Keyframe).

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(String, TypeConverter, ITypeEvaluator, Object[])

Constructs and returns a PropertyValuesHolder with a given property and set of Object values for use with ObjectAnimator multi-value setters.

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

Parameters

propertyName
String

The property being animated or complete name of the setter. Should not be null.

converter
TypeConverter

Used to convert the animated value to setter parameters.

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[]

The values that the property will animate between.

Returns

PropertyValuesHolder The constructed PropertyValuesHolder object.

Attributes

Remarks

Constructs and returns a PropertyValuesHolder with a given property and set of Object values for use with ObjectAnimator multi-value setters. The Object values are converted to float[] using the converter.

Java documentation for android.animation.PropertyValuesHolder.ofMultiFloat(java.lang.String, android.animation.TypeConverter<V, float[]>, android.animation.TypeEvaluator<V>, V...).

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