Aracılığıyla paylaş


ShapeDrawable.OnDraw(Shape, Canvas, Paint) Method

Definition

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

[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 (Android.Graphics.Drawables.Shapes.Shape? shape, Android.Graphics.Canvas? canvas, Android.Graphics.Paint? paint);
[<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")>]
abstract member OnDraw : Android.Graphics.Drawables.Shapes.Shape * Android.Graphics.Canvas * Android.Graphics.Paint -> unit
override this.OnDraw : Android.Graphics.Drawables.Shapes.Shape * Android.Graphics.Canvas * Android.Graphics.Paint -> unit

Parameters

shape
Shape
canvas
Canvas
paint
Paint
Attributes

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.

Java documentation for android.graphics.drawable.ShapeDrawable.onDraw(android.graphics.drawable.shapes.Shape, android.graphics.Canvas, android.graphics.Paint).

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