Udostępnij za pośrednictwem


PropertyValuesHolder.OfFloat Method

Definition

Overloads

OfFloat(Property, Single[])

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

OfFloat(String, Single[])

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

OfFloat(Property, Single[])

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

[Android.Runtime.Register("ofFloat", "(Landroid/util/Property;[F)Landroid/animation/PropertyValuesHolder;", "")]
public static Android.Animation.PropertyValuesHolder? OfFloat (Android.Util.Property? property, params float[]? values);
[<Android.Runtime.Register("ofFloat", "(Landroid/util/Property;[F)Landroid/animation/PropertyValuesHolder;", "")>]
static member OfFloat : Android.Util.Property * single[] -> Android.Animation.PropertyValuesHolder

Parameters

property
Property

The property being animated. 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 and set of float values.

Java documentation for android.animation.PropertyValuesHolder.ofFloat(android.util.Property<?, java.lang.Float>, 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

OfFloat(String, Single[])

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

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

Parameters

propertyName
String

The name of the property being animated.

values
Single[]

The values that the named 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.

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