Udostępnij za pośrednictwem


View.MergeDrawableStates(Int32[], Int32[]) Method

Definition

Merge your own state values in <var>additionalState</var> into the base state values <var>baseState</var> that were returned by #onCreateDrawableState(int).

[Android.Runtime.Register("mergeDrawableStates", "([I[I)[I", "")]
protected static int[]? MergeDrawableStates (int[]? baseState, int[]? additionalState);
[<Android.Runtime.Register("mergeDrawableStates", "([I[I)[I", "")>]
static member MergeDrawableStates : int[] * int[] -> int[]

Parameters

baseState
Int32[]

The base state values returned by #onCreateDrawableState(int), which will be modified to also hold your own additional state values.

additionalState
Int32[]

The additional state values you would like added to <var>baseState</var>; this array is not modified.

Returns

Int32[]

As a convenience, the <var>baseState</var> array you originally passed into the function is returned.

Attributes

Remarks

Merge your own state values in <var>additionalState</var> into the base state values <var>baseState</var> that were returned by #onCreateDrawableState(int).

Java documentation for android.view.View.mergeDrawableStates(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

See also