Android.Graphics.Drawables.ShapeDrawable Members

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

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

Public Constructors

ShapeDrawable constructor.
Creates a ShapeDrawable with a specified Shape.

Protected Constructors

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

Public Properties

[read-only]
override
Opacityint. Return the opacity/transparency of this Drawable.
[read-only]
PaintAndroid.Graphics.Paint. Returns the Paint used to draw the shape.
ShapeAndroid.Graphics.Drawables.Shapes.Shape. Returns the Shape of this ShapeDrawable.

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).
GetShaderFactory() : ShapeDrawable.ShaderFactory
Returns the ShaderFactory used by this ShapeDrawable for requesting a Android.Graphics.Shader.
override
SetAlpha(int)
Set the alpha level for this drawable [0.
override
SetColorFilter(Android.Graphics.ColorFilter)
Specify an optional color filter for the drawable.
SetIntrinsicHeight(int)
Sets the intrinsic (default) height for this shape.
SetIntrinsicWidth(int)
Sets the intrinsic (default) width for this shape.
SetPadding(Android.Graphics.Rect)
Sets padding for this shape, defined by a Rect object.
SetPadding(int, int, int, int)
Sets padding for the shape.
SetShaderFactory(ShapeDrawable.ShaderFactory)
Sets a ShaderFactory to which requests for a Android.Graphics.Shader object will be made.

Protected Methods

InflateTag(string, Android.Content.Res.Resources, System.Xml.XmlReader, Android.Util.IAttributeSet) : bool
Subclasses override this to parse custom subelements.
OnDraw(Android.Graphics.Drawables.Shapes.Shape, Android.Graphics.Canvas, Android.Graphics.Paint)
Called from the drawable's draw() method after the canvas has been set to draw the shape at (0,0).