Freigeben über


AnimatedStateListDrawable.AddState(Int32[], Drawable, Int32) Method

Definition

Add a new drawable to the set of keyframes.

[Android.Runtime.Register("addState", "([ILandroid/graphics/drawable/Drawable;I)V", "GetAddState_arrayILandroid_graphics_drawable_Drawable_IHandler")]
public virtual void AddState (int[] stateSet, Android.Graphics.Drawables.Drawable drawable, int id);
[<Android.Runtime.Register("addState", "([ILandroid/graphics/drawable/Drawable;I)V", "GetAddState_arrayILandroid_graphics_drawable_Drawable_IHandler")>]
override this.AddState : int[] * Android.Graphics.Drawables.Drawable * int -> unit

Parameters

stateSet
Int32[]

An array of resource IDs to associate with the keyframe

drawable
Drawable

The drawable to show when in the specified state, may not be null

id
Int32

The unique identifier for the keyframe

Attributes

Remarks

Add a new drawable to the set of keyframes.

Java documentation for android.graphics.drawable.AnimatedStateListDrawable.addState(int[], android.graphics.drawable.Drawable, int).

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