Share via


RoundRectShape Constructors

Definition

Overloads

RoundRectShape(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

RoundRectShape(Single[], RectF, Single[])

RoundRectShape constructor.

RoundRectShape(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

protected RoundRectShape (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Graphics.Drawables.Shapes.RoundRectShape : nativeint * Android.Runtime.JniHandleOwnership -> Android.Graphics.Drawables.Shapes.RoundRectShape

Parameters

javaReference
IntPtr

nativeint

A IntPtrcontaining a Java Native Interface (JNI) object reference.

transfer
JniHandleOwnership

A JniHandleOwnershipindicating how to handle javaReference

Remarks

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

RoundRectShape(Single[], RectF, Single[])

RoundRectShape constructor.

[Android.Runtime.Register(".ctor", "([FLandroid/graphics/RectF;[F)V", "")]
public RoundRectShape (float[]? outerRadii, Android.Graphics.RectF? inset, float[]? innerRadii);
[<Android.Runtime.Register(".ctor", "([FLandroid/graphics/RectF;[F)V", "")>]
new Android.Graphics.Drawables.Shapes.RoundRectShape : single[] * Android.Graphics.RectF * single[] -> Android.Graphics.Drawables.Shapes.RoundRectShape

Parameters

outerRadii
Single[]

An array of 8 radius values, for the outer roundrect. The first two floats are for the top-left corner (remaining pairs correspond clockwise). For no rounded corners on the outer rectangle, pass null.

inset
RectF

A RectF that specifies the distance from the inner rect to each side of the outer rect. For no inner, pass null.

innerRadii
Single[]

An array of 8 radius values, for the inner roundrect. The first two floats are for the top-left corner (remaining pairs correspond clockwise). For no rounded corners on the inner rectangle, pass null. If inset parameter is null, this parameter is ignored.

Attributes

Remarks

RoundRectShape constructor.

Specifies an outer (round)rect and an optional inner (round)rect.

Java documentation for android.graphics.drawable.shapes.RoundRectShape.RoundRectShape(float[], android.graphics.RectF, 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.

Applies to