Android.Graphics.Drawables.GradientDrawable.SetGradientType Method

Syntax

[Android.Runtime.Register("setGradientType", "(I)V", "GetSetGradientType_IHandler")]
public virtual void SetGradientType ([Android.Runtime.GeneratedEnum] GradientType gradient)

Parameters

gradient
The type of the gradient: GradientDrawable.LINEAR_GRADIENT, GradientDrawable.RADIAL_GRADIENT or GradientDrawable.SWEEP_GRADIENT

Remarks

Sets the type of gradient used by this drawable..

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