Layout.DrawBackground(Canvas) Method

Definition

Draw background of this layout.

[Android.Runtime.Register("drawBackground", "(Landroid/graphics/Canvas;)V", "GetDrawBackground_Landroid_graphics_Canvas_Handler", ApiSince=34)]
public virtual void DrawBackground (Android.Graphics.Canvas canvas);
[<Android.Runtime.Register("drawBackground", "(Landroid/graphics/Canvas;)V", "GetDrawBackground_Landroid_graphics_Canvas_Handler", ApiSince=34)>]
abstract member DrawBackground : Android.Graphics.Canvas -> unit
override this.DrawBackground : Android.Graphics.Canvas -> unit

Parameters

canvas
Canvas

the canvas

Attributes

Remarks

Draw background of this layout.

Different from #draw(Canvas, List, List, Path, Paint, int) API, this API only draws background, not drawing text, highlights or selections. The background here is drawn by LineBackgroundSpan attached to the text.

Java documentation for android.text.Layout.drawBackground(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