Udostępnij za pośrednictwem


GradientDrawable.GetCornerRadii Method

Definition

Returns the radii for each of the 4 corners.

[Android.Runtime.Register("getCornerRadii", "()[F", "GetGetCornerRadiiHandler", ApiSince=24)]
public virtual float[]? GetCornerRadii ();
[<Android.Runtime.Register("getCornerRadii", "()[F", "GetGetCornerRadiiHandler", ApiSince=24)>]
abstract member GetCornerRadii : unit -> single[]
override this.GetCornerRadii : unit -> single[]

Returns

Single[]

an array containing the radii for each of the 4 corners, or null

Attributes

Remarks

Returns the 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.

If the radius was previously set with #setCornerRadius(float), or if the corners are not rounded, this method will return null.

Java documentation for android.graphics.drawable.GradientDrawable.getCornerRadii().

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.

Applies to