Android.Graphics.Drawables.GradientDrawable.SetStroke Method

Syntax

[Android.Runtime.Register("setStroke", "(ILandroid/content/res/ColorStateList;)V", "GetSetStroke_ILandroid_content_res_ColorStateList_Handler")]
public virtual void SetStroke (int width, Android.Content.Res.ColorStateList colorStateList)

See Also

GradientDrawable.SetStroke(int, Android.Content.Res.ColorStateList, Android.Content.Res.ColorStateList, Android.Content.Res.ColorStateList)

Parameters

width
The width in pixels of the stroke
colorStateList
The color state list of the stroke

Remarks

Set the stroke width and color state list 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