Android Guides | Samples

Android.Graphics.Drawables.Drawable.GetState Method

Syntax

[Android.Runtime.Register("getState", "()[I", "GetGetStateHandler")]
public virtual Int32[] GetState ()

Remarks

Describes the current state, as a union of primitve states, such as NoType:android/R$attr;Href=../../../../reference/android/R.attr.html#state_focused, NoType:android/R$attr;Href=../../../../reference/android/R.attr.html#state_selected, etc. Some drawables may modify their imagery based on the selected state.

[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