Läs på engelska

Dela via


View.OnDraw(Canvas) Method

Definition

Implement this to do your drawing.

C#
[Android.Runtime.Register("onDraw", "(Landroid/graphics/Canvas;)V", "GetOnDraw_Landroid_graphics_Canvas_Handler")]
protected virtual void OnDraw (Android.Graphics.Canvas canvas);

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

Produkt Versioner
.NET for Android .NET for Android API 34, .NET for Android API 35