Share via


View.OnDraw(Canvas) Method

Definition

Implement this to do your drawing.

[Android.Runtime.Register("onDraw", "(Landroid/graphics/Canvas;)V", "GetOnDraw_Landroid_graphics_Canvas_Handler")]
protected virtual void OnDraw (Android.Graphics.Canvas canvas);
[<Android.Runtime.Register("onDraw", "(Landroid/graphics/Canvas;)V", "GetOnDraw_Landroid_graphics_Canvas_Handler")>]
abstract member OnDraw : Android.Graphics.Canvas -> unit
override this.OnDraw : Android.Graphics.Canvas -> unit

Parameters

canvas
Canvas

the canvas on which the background will be drawn

Attributes

Remarks

Implement this to do your drawing.

Java documentation for android.view.View.onDraw(android.graphics.Canvas).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to