ColorStateList ColorStateList Constructors

Definition

Overloads

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

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

ColorStateList(IntPtr, JniHandleOwnership) ColorStateList(IntPtr, JniHandleOwnership)

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

ColorStateList(Int32[][], Int32[]) 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);
new Android.Content.Res.ColorStateList : int[][] * int[] -> Android.Content.Res.ColorStateList

Parameters

states
Int32[][]
colors
Int32[]

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.

ColorStateList(IntPtr, JniHandleOwnership) 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 IntPtr

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

transfer
JniHandleOwnership 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