Langue

StateListDrawable.FindStateDrawableIndex(Int32[]) Méthode

Définition

Obtient l’index du dessinable avec le jeu d’états fourni.

[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

Paramètres

stateSet
Int32[]

l’état configuré pour rechercher

Retours

l’index du jeu d’états fourni ou -1 s’il est introuvable

Attributs

Remarques

Obtient l’index du dessinable avec le jeu d’états fourni.

Java documentation pour android.graphics.drawable.StateListDrawable.findStateDrawableIndex(int[]).

Les parties de cette page sont des modifications basées sur le travail créé et partagé par Android Open Source et utilisées en fonction des termes décrits dans la Creative Commons 2.5 Attribution License.

S’applique à