Android Guides | Samples

Android.Graphics.Drawables.PaintDrawable Class

Drawable that draws its bounds in the given paint, with optional rounded corners.

See Also: PaintDrawable

Syntax

[Android.Runtime.Register("android/graphics/drawable/PaintDrawable", DoNotGenerateAcw=true)]
public class PaintDrawable : ShapeDrawable

Remarks

Drawable that draws its bounds in the given paint, with optional rounded corners.

[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

The members of Android.Graphics.Drawables.PaintDrawable are listed below.

See Also: ShapeDrawable

Public Constructors

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

SetCornerRadii(Single[])
Specify radii for each of the 4 corners.
SetCornerRadius(Single)
Specify radius for the corners of the rectangle.