ColorStateList Constructors

Definition

Overloads

ColorStateList(Int32[][], Int32[])

Creates a ColorStateList that returns the specified mapping from states to colors.

ColorStateList(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

ColorStateList(Int32[][], Int32[])

Creates a ColorStateList that returns the specified mapping from states to colors.

[Android.Runtime.Register(".ctor", "([[I[I)V", "")]
public ColorStateList (int[][]? states, int[]? colors);
[<Android.Runtime.Register(".ctor", "([[I[I)V", "")>]
new Android.Content.Res.ColorStateList : int[][] * int[] -> Android.Content.Res.ColorStateList

Parameters

states
Int32[][]
colors
Int32[]
Attributes

Remarks

Creates a ColorStateList that returns the specified mapping from states to colors.

Java documentation for android.content.res.ColorStateList.ColorStateList(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

ColorStateList(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

protected ColorStateList (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Content.Res.ColorStateList : nativeint * Android.Runtime.JniHandleOwnership -> Android.Content.Res.ColorStateList

Parameters

javaReference
IntPtr

nativeint

A IntPtrcontaining a Java Native Interface (JNI) object reference.

transfer
JniHandleOwnership

A JniHandleOwnershipindicating how to handle javaReference

Remarks

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