Android.Graphics.Drawables.GradientDrawable.SetStroke Method

Syntax

[Android.Runtime.Register("setStroke", "(II)V", "GetSetStroke_IIHandler")]
public virtual void SetStroke (int width, Android.Graphics.Color color)

See Also

GradientDrawable.SetStroke(int, Android.Graphics.Color, Android.Graphics.Color, Android.Graphics.Color)

Parameters

width
The width in pixels of the stroke
color
The color of the stroke

Remarks

Set the stroke width and color for the drawable. If width is zero, then no stroke is drawn.

Note: changing this property will affect all instances of a drawable loaded from a resource. It is recommended to invoke GradientDrawable.mutate() before changing this property.

[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