Android.Graphics.Drawables.ShapeDrawable Class
A Drawable object that draws primitive shapes.

See Also: ShapeDrawable Members


[Android.Runtime.Register("android/graphics/drawable/ShapeDrawable", DoNotGenerateAcw=true)]
public class ShapeDrawable : Drawable


A Drawable object that draws primitive shapes. A ShapeDrawable takes a Android.Graphics.Drawables.Shapes.Shape object and manages its presence on the screen. If no Shape is given, then the ShapeDrawable will default to a Android.Graphics.Drawables.Shapes.RectShape.

Developer Guides

This object can be defined in an XML file with the <shape> element.

For more information about how to use ShapeDrawable, read the Canvas and Drawables document. For more information about defining a ShapeDrawable in XML, read the Drawable Resources document.

[Android Documentation]


Namespace: Android.Graphics.Drawables
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions:
Since: Added in API level 1