StateListDrawable.GetStateDrawable(Int32) Method

Definition

Gets the drawable at an index.

[Android.Runtime.Register("getStateDrawable", "(I)Landroid/graphics/drawable/Drawable;", "GetGetStateDrawable_IHandler", ApiSince=29)]
public virtual Android.Graphics.Drawables.Drawable? GetStateDrawable (int index);
[<Android.Runtime.Register("getStateDrawable", "(I)Landroid/graphics/drawable/Drawable;", "GetGetStateDrawable_IHandler", ApiSince=29)>]
abstract member GetStateDrawable : int -> Android.Graphics.Drawables.Drawable
override this.GetStateDrawable : int -> Android.Graphics.Drawables.Drawable

Parameters

index
Int32

The index of the drawable.

Returns

The drawable at the index.

Attributes

Remarks

Gets the drawable at an index.

Java documentation for android.graphics.drawable.StateListDrawable.getStateDrawable(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