Android.Graphics.Drawables.GradientDrawable.SetSize Method

Syntax

[Android.Runtime.Register("setSize", "(II)V", "GetSetSize_IIHandler")]
public virtual void SetSize (int width, int height)

See Also

GradientDrawable.SetGradientType(GradientType)

Parameters

width
The width of the shape used by this drawable
height
The height of the shape used by this drawable

Remarks

Sets the size of the shape drawn 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