Android.Graphics.Drawables.GradientDrawable.SetColor Method

Syntax

[Android.Runtime.Register("setColor", "(I)V", "GetSetColor_IHandler")]
public virtual void SetColor (int argb)

See Also

GradientDrawable.SetColors(Int32[])

Parameters

argb
The color used to fill the shape

Remarks

Changes this drawable to use a single color instead of a gradient.

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

[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