Android.Graphics.Drawables.GradientDrawable.SetGradientRadius Method

Syntax

[Android.Runtime.Register("setGradientRadius", "(F)V", "GetSetGradientRadius_FHandler")]
public virtual void SetGradientRadius (float gradientRadius)

See Also

GradientDrawable.SetGradientType(GradientType)

Parameters

gradientRadius
The radius of the gradient in pixels

Remarks

Sets the radius of the gradient. The radius is honored only when the gradient type is set to GradientDrawable.RADIAL_GRADIENT.

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