DrawableMarginSpan Constructors

Definition

Overloads

DrawableMarginSpan(Drawable)

Creates a DrawableMarginSpan from a Drawable.

DrawableMarginSpan(Drawable, Int32)

Creates a DrawableMarginSpan from a Drawable and a padding, in pixels.

DrawableMarginSpan(IntPtr, JniHandleOwnership)

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

DrawableMarginSpan(Drawable)

Creates a DrawableMarginSpan from a Drawable.

[Android.Runtime.Register(".ctor", "(Landroid/graphics/drawable/Drawable;)V", "")]
public DrawableMarginSpan (Android.Graphics.Drawables.Drawable drawable);
[<Android.Runtime.Register(".ctor", "(Landroid/graphics/drawable/Drawable;)V", "")>]
new Android.Text.Style.DrawableMarginSpan : Android.Graphics.Drawables.Drawable -> Android.Text.Style.DrawableMarginSpan

Parameters

drawable
Drawable

the drawable to be added

Attributes

Remarks

Creates a DrawableMarginSpan from a Drawable. The pad width will be 0.

Java documentation for android.text.style.DrawableMarginSpan.DrawableMarginSpan(android.graphics.drawable.Drawable).

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

DrawableMarginSpan(Drawable, Int32)

Creates a DrawableMarginSpan from a Drawable and a padding, in pixels.

[Android.Runtime.Register(".ctor", "(Landroid/graphics/drawable/Drawable;I)V", "")]
public DrawableMarginSpan (Android.Graphics.Drawables.Drawable drawable, int pad);
[<Android.Runtime.Register(".ctor", "(Landroid/graphics/drawable/Drawable;I)V", "")>]
new Android.Text.Style.DrawableMarginSpan : Android.Graphics.Drawables.Drawable * int -> Android.Text.Style.DrawableMarginSpan

Parameters

drawable
Drawable

the drawable to be added

pad
Int32

the distance between the drawable and the text

Attributes

Remarks

Creates a DrawableMarginSpan from a Drawable and a padding, in pixels.

Java documentation for android.text.style.DrawableMarginSpan.DrawableMarginSpan(android.graphics.drawable.Drawable, int).

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

DrawableMarginSpan(IntPtr, JniHandleOwnership)

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

protected DrawableMarginSpan (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Text.Style.DrawableMarginSpan : nativeint * Android.Runtime.JniHandleOwnership -> Android.Text.Style.DrawableMarginSpan

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