Share via


GradientDrawable Constructors

Definition

Overloads

GradientDrawable()

Creates a new themed GradientDrawable based on the specified constant state.

GradientDrawable(GradientDrawable+Orientation, Int32[])

Creates a new themed GradientDrawable based on the specified constant state.

GradientDrawable(IntPtr, JniHandleOwnership)

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

GradientDrawable()

Creates a new themed GradientDrawable based on the specified constant state.

[Android.Runtime.Register(".ctor", "()V", "")]
public GradientDrawable ();
Attributes

Remarks

Java documentation for android.graphics.drawable.GradientDrawable.GradientDrawable(android.graphics.drawable.GradientState, android.content.res.Resources).

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

GradientDrawable(GradientDrawable+Orientation, Int32[])

Creates a new themed GradientDrawable based on the specified constant state.

[Android.Runtime.Register(".ctor", "(Landroid/graphics/drawable/GradientDrawable$Orientation;[I)V", "")]
public GradientDrawable (Android.Graphics.Drawables.GradientDrawable.Orientation? orientation, int[]? colors);
[<Android.Runtime.Register(".ctor", "(Landroid/graphics/drawable/GradientDrawable$Orientation;[I)V", "")>]
new Android.Graphics.Drawables.GradientDrawable : Android.Graphics.Drawables.GradientDrawable.Orientation * int[] -> Android.Graphics.Drawables.GradientDrawable

Parameters

colors
Int32[]
Attributes

Remarks

Java documentation for android.graphics.drawable.GradientDrawable.GradientDrawable(android.graphics.drawable.GradientState, android.content.res.Resources).

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

GradientDrawable(IntPtr, JniHandleOwnership)

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

protected GradientDrawable (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Graphics.Drawables.GradientDrawable : nativeint * Android.Runtime.JniHandleOwnership -> Android.Graphics.Drawables.GradientDrawable

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