GradientDrawable.CornerRadius Property
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.
Returns the radius for the corners of the gradient, that was previously set with
#setCornerRadius(float)
.
public virtual float CornerRadius { [Android.Runtime.Register("getCornerRadius", "()F", "GetGetCornerRadiusHandler", ApiSince=24)] get; }
[<get: Android.Runtime.Register("getCornerRadius", "()F", "GetGetCornerRadiusHandler", ApiSince=24)>]
member this.CornerRadius : single
Property Value
the radius in pixels of the corners of the rectangle shape, or 0
- Attributes
Remarks
Returns the radius for the corners of the gradient, that was previously set with #setCornerRadius(float)
.
If the radius was previously cleared via passing null
to #setCornerRadii(float[])
, this method will return 0.
Java documentation for android.graphics.drawable.GradientDrawable.getCornerRadius()
.
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.