Android.Graphics.Drawables.GradientDrawable Members

The members of Android.Graphics.Drawables.GradientDrawable are listed below.

See Also: Inherited members from Android.Graphics.Drawables.Drawable

Public Constructors

Create a new gradient drawable given an orientation and an array of colors for the gradient.

Protected Constructors

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

Public Properties

[read-only]
GradientRadiusfloat. Returns the radius of the gradient in pixels.
[read-only]
override
Opacityint. Return the opacity/transparency of this Drawable.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

override
Draw(Android.Graphics.Canvas)
Draw in its bounds (set via setBounds) respecting optional effects such as alpha (set via setAlpha) and color filter (set via setColorFilter).
GetOrientation() : GradientDrawable.Orientation
Returns the orientation of the gradient defined in this drawable.
override
SetAlpha(int)
Specify an alpha value for the drawable. 0 means fully transparent, and 255 means fully opaque.
SetColor(Android.Content.Res.ColorStateList)
Changes this drawable to use a single color state list instead of a gradient.
SetColor(int)
override
SetColorFilter(Android.Graphics.ColorFilter)
Specify an optional color filter for the drawable.
SetColors(int[])
SetCornerRadii(float[])
SetCornerRadius(float)
SetGradientCenter(float, float)
SetGradientRadius(float)
SetGradientType(GradientType)
SetOrientation(GradientDrawable.Orientation)
SetShape(ShapeType)
SetSize(int, int)
SetStroke(int, Android.Content.Res.ColorStateList)
SetStroke(int, Android.Graphics.Color)
SetStroke(int, Android.Content.Res.ColorStateList, float, float)
SetStroke(int, Android.Graphics.Color, float, float)
SetUseLevel(bool)