ValueAnimator.SetFloatValues(Single[]) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets float values that will be animated between.
[Android.Runtime.Register("setFloatValues", "([F)V", "GetSetFloatValues_arrayFHandler")]
public virtual void SetFloatValues (params float[]? values);
[<Android.Runtime.Register("setFloatValues", "([F)V", "GetSetFloatValues_arrayFHandler")>]
abstract member SetFloatValues : single[] -> unit
override this.SetFloatValues : single[] -> unit
Parameters
- values
- Single[]
A set of values that the animation will animate between over time.
- Attributes
Remarks
Sets float values that will be animated between. 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.
If there are already multiple sets of values defined for this ValueAnimator via more than one PropertyValuesHolder object, this method will set the values for the first of those objects.
Java documentation for android.animation.ValueAnimator.setFloatValues(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.