Android Guides | Samples

Android.Graphics.Drawables.StateListDrawable.AddState Method

Add a new image/string ID to the set of images.

Syntax

[Android.Runtime.Register("addState", "([ILandroid/graphics/drawable/Drawable;)V", "GetAddState_arrayILandroid_graphics_drawable_Drawable_Handler")]
public virtual Void AddState (Int32[] stateSet, Drawable drawable)

Parameters

stateSet
- An array of resource Ids to associate with the image. Switch to this image by calling setState().
drawable
-The image to show.

Remarks

Add a new image/string ID to the set of images.

[Android Documentation]

Requirements

Namespace: Android.Graphics.Drawables
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1