Android Guides | Samples

Android.Graphics.Drawables.ShapeDrawable.OnDraw Method

Called from the drawable's draw() method after the canvas has been set to draw the shape at (0,0).

Syntax

[Android.Runtime.Register("onDraw", "(Landroid/graphics/drawable/shapes/Shape;Landroid/graphics/Canvas;Landroid/graphics/Paint;)V", "GetOnDraw_Landroid_graphics_drawable_shapes_Shape_Landroid_graphics_Canvas_Landroid_graphics_Paint_Handler")]
protected virtual Void OnDraw (Shape shape, Canvas canvas, Paint paint)

Parameters

shape
canvas
paint

Remarks

Called from the drawable's draw() method after the canvas has been set to draw the shape at (0,0). Subclasses can override for special effects such as multiple layers, stroking, etc.

[Android Documentation]

Requirements

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