Android.Graphics.Drawables.GradientDrawable.SetCornerRadii Method

Syntax

[Android.Runtime.Register("setCornerRadii", "([F)V", "GetSetCornerRadii_arrayFHandler")]
public virtual void SetCornerRadii (float[] radii)

See Also

GradientDrawable.SetCornerRadii(Single[])
GradientDrawable.SetShape(ShapeType)

Parameters

radii
4 pairs of X and Y radius for each corner, specified in pixels. The length of this array must be >= 8

Remarks

Specify radii for each of the 4 corners. For each corner, the array contains 2 values, [X_radius, Y_radius]. The corners are ordered top-left, top-right, bottom-right, bottom-left. This property is honored only when the shape is of type GradientDrawable.RECTANGLE.

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