GradientDrawable.SetCornerRadii(Single[]) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Specifies radii for each of the 4 corners.
[Android.Runtime.Register("setCornerRadii", "([F)V", "GetSetCornerRadii_arrayFHandler")]
public virtual void SetCornerRadii (float[]? radii);
[<Android.Runtime.Register("setCornerRadii", "([F)V", "GetSetCornerRadii_arrayFHandler")>]
abstract member SetCornerRadii : single[] -> unit
override this.SetCornerRadii : single[] -> unit
Parameters
- radii
- Single[]
an array of length >= 8 containing 4 pairs of X and Y radius for each corner, specified in pixels
- Attributes
Remarks
Specifies 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 #RECTANGLE
.
<strong>Note</strong>: changing this property will affect all instances of a drawable loaded from a resource. It is recommended to invoke #mutate()
before changing this property.
Java documentation for android.graphics.drawable.GradientDrawable.setCornerRadii(float[])
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.