StateListAnimator.AddState(Int32[], Animator) 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.
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.
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.