Android.Graphics.Drawables.GradientDrawable.SetShape Method

Syntax

[Android.Runtime.Register("setShape", "(I)V", "GetSetShape_IHandler")]
public virtual void SetShape ([Android.Runtime.GeneratedEnum] ShapeType shape)

Parameters

shape
The desired shape for this drawable: GradientDrawable.LINE, GradientDrawable.OVAL, GradientDrawable.RECTANGLE or GradientDrawable.RING

Remarks

Sets the type of shape used to draw the 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