StateListDrawable.FindStateDrawableIndex(Int32[]) Method

Definition

Gets the index of the drawable with the provided state set.

[Android.Runtime.Register("findStateDrawableIndex", "([I)I", "GetFindStateDrawableIndex_arrayIHandler", ApiSince=29)]
public virtual int FindStateDrawableIndex (int[] stateSet);
[<Android.Runtime.Register("findStateDrawableIndex", "([I)I", "GetFindStateDrawableIndex_arrayIHandler", ApiSince=29)>]
abstract member FindStateDrawableIndex : int[] -> int
override this.FindStateDrawableIndex : int[] -> int

Parameters

stateSet
Int32[]

the state set to look up

Returns

the index of the provided state set, or -1 if not found

Attributes

Remarks

Gets the index of the drawable with the provided state set.

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