Sdílet prostřednictvím


PropertyValuesHolder.SetEvaluator(ITypeEvaluator) Method

Definition

The TypeEvaluator will be automatically determined based on the type of values supplied to PropertyValuesHolder.

[Android.Runtime.Register("setEvaluator", "(Landroid/animation/TypeEvaluator;)V", "GetSetEvaluator_Landroid_animation_TypeEvaluator_Handler")]
public virtual void SetEvaluator (Android.Animation.ITypeEvaluator? evaluator);
[<Android.Runtime.Register("setEvaluator", "(Landroid/animation/TypeEvaluator;)V", "GetSetEvaluator_Landroid_animation_TypeEvaluator_Handler")>]
abstract member SetEvaluator : Android.Animation.ITypeEvaluator -> unit
override this.SetEvaluator : Android.Animation.ITypeEvaluator -> unit

Parameters

evaluator
ITypeEvaluator

evaluator

Attributes

Remarks

The TypeEvaluator will be automatically determined based on the type of values supplied to PropertyValuesHolder. The evaluator can be manually set, however, if so desired. This may be important in cases where either the type of the values supplied do not match the way that they should be interpolated between, or if the values are of a custom type or one not currently understood by the animation system. Currently, only values of type float and int (and their Object equivalents: Float and Integer) are correctly interpolated; all other types require setting a TypeEvaluator.

Java documentation for android.animation.PropertyValuesHolder.setEvaluator(android.animation.TypeEvaluator).

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