Partager via


StateSet.StateSetMatches Method

Definition

Overloads

StateSetMatches(Int32[], Int32)

Return whether the state matches the desired stateSpec.

StateSetMatches(Int32[], Int32[])

Return whether the stateSet matches the desired stateSpec.

StateSetMatches(Int32[], Int32)

Return whether the state matches the desired stateSpec.

[Android.Runtime.Register("stateSetMatches", "([II)Z", "")]
public static bool StateSetMatches (int[]? stateSpec, int state);
[<Android.Runtime.Register("stateSetMatches", "([II)Z", "")>]
static member StateSetMatches : int[] * int -> bool

Parameters

stateSpec
Int32[]

an array of required (if positive) or prohibited (if negative) android.view.View states.

state
Int32

a android.view.View state

Returns

Attributes

Remarks

Return whether the state matches the desired stateSpec.

Java documentation for android.util.StateSet.stateSetMatches(int[], 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

StateSetMatches(Int32[], Int32[])

Return whether the stateSet matches the desired stateSpec.

[Android.Runtime.Register("stateSetMatches", "([I[I)Z", "")]
public static bool StateSetMatches (int[]? stateSpec, int[]? stateSet);
[<Android.Runtime.Register("stateSetMatches", "([I[I)Z", "")>]
static member StateSetMatches : int[] * int[] -> bool

Parameters

stateSpec
Int32[]

an array of required (if positive) or prohibited (if negative) android.view.View states.

stateSet
Int32[]

an array of android.view.View states

Returns

Attributes

Remarks

Return whether the stateSet matches the desired stateSpec.

Java documentation for android.util.StateSet.stateSetMatches(int[], 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