StateListAnimator.AddState(Int32[], Animator) Method

Definition

Associates the given animator with the provided drawable state specs so that it will be run when the View's drawable state matches the specs.

[Android.Runtime.Register("addState", "([ILandroid/animation/Animator;)V", "GetAddState_arrayILandroid_animation_Animator_Handler")]
public virtual void AddState (int[]? specs, Android.Animation.Animator? animator);
[<Android.Runtime.Register("addState", "([ILandroid/animation/Animator;)V", "GetAddState_arrayILandroid_animation_Animator_Handler")>]
abstract member AddState : int[] * Android.Animation.Animator -> unit
override this.AddState : int[] * Android.Animation.Animator -> unit

Parameters

specs
Int32[]

The drawable state specs to match against

animator
Animator

The animator to run when the specs match

Attributes

Remarks

Associates the given animator with the provided drawable state specs so that it will be run when the View's drawable state matches the specs.

Java documentation for android.animation.StateListAnimator.addState(int[], android.animation.Animator).

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