Share via


ShapeDrawable Constructors

Definition

Overloads

ShapeDrawable()

ShapeDrawable constructor.

ShapeDrawable(Shape)

Creates a ShapeDrawable with a specified Shape.

ShapeDrawable(IntPtr, JniHandleOwnership)

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

ShapeDrawable()

ShapeDrawable constructor.

[Android.Runtime.Register(".ctor", "()V", "")]
public ShapeDrawable ();
Attributes

Remarks

ShapeDrawable constructor.

Java documentation for android.graphics.drawable.ShapeDrawable.ShapeDrawable().

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

ShapeDrawable(Shape)

Creates a ShapeDrawable with a specified Shape.

[Android.Runtime.Register(".ctor", "(Landroid/graphics/drawable/shapes/Shape;)V", "")]
public ShapeDrawable (Android.Graphics.Drawables.Shapes.Shape? s);
[<Android.Runtime.Register(".ctor", "(Landroid/graphics/drawable/shapes/Shape;)V", "")>]
new Android.Graphics.Drawables.ShapeDrawable : Android.Graphics.Drawables.Shapes.Shape -> Android.Graphics.Drawables.ShapeDrawable

Parameters

s
Shape

the Shape that this ShapeDrawable should be

Attributes

Remarks

Creates a ShapeDrawable with a specified Shape.

Java documentation for android.graphics.drawable.ShapeDrawable.ShapeDrawable(android.graphics.drawable.shapes.Shape).

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

ShapeDrawable(IntPtr, JniHandleOwnership)

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

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

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