Android.Graphics.Drawables.ShapeDrawable: Method Members

The methods of Android.Graphics.Drawables.ShapeDrawable are listed below. For a list of all members, see the ShapeDrawable Members list.

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

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).