ImageSpan Constructors
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.
Overloads
ImageSpan(Bitmap) |
Obsolete.
This member is deprecated. |
ImageSpan(Drawable, String, SpanAlign) |
Constructs an |
ImageSpan(Context, Int32, SpanAlign) |
Constructs an |
ImageSpan(Context, Uri, SpanAlign) |
Constructs an |
ImageSpan(Context, Bitmap, SpanAlign) |
Constructs an |
ImageSpan(Drawable, String) |
Constructs an |
ImageSpan(IntPtr, JniHandleOwnership) |
A constructor used when creating managed representations of JNI objects; called by the runtime. |
ImageSpan(Bitmap, SpanAlign) |
Obsolete.
This member is deprecated. |
ImageSpan(Context, Int32) |
Constructs an |
ImageSpan(Context, Uri) |
Constructs an |
ImageSpan(Context, Bitmap) |
Constructs an |
ImageSpan(Drawable) |
Constructs an |
ImageSpan(Drawable, SpanAlign) |
Constructs an |
ImageSpan(Bitmap)
Caution
deprecated
This member is deprecated.
[Android.Runtime.Register(".ctor", "(Landroid/graphics/Bitmap;)V", "")]
[System.Obsolete("deprecated")]
public ImageSpan (Android.Graphics.Bitmap b);
[<Android.Runtime.Register(".ctor", "(Landroid/graphics/Bitmap;)V", "")>]
[<System.Obsolete("deprecated")>]
new Android.Text.Style.ImageSpan : Android.Graphics.Bitmap -> Android.Text.Style.ImageSpan
Parameters
- b
- Bitmap
- Attributes
Remarks
This member is deprecated. Use #ImageSpan(Context, Bitmap)
instead.
Java documentation for android.text.style.ImageSpan.ImageSpan(android.graphics.Bitmap)
.
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
ImageSpan(Drawable, String, SpanAlign)
Constructs an ImageSpan
from a drawable, a source and a vertical alignment.
[Android.Runtime.Register(".ctor", "(Landroid/graphics/drawable/Drawable;Ljava/lang/String;I)V", "")]
public ImageSpan (Android.Graphics.Drawables.Drawable drawable, string source, Android.Text.Style.SpanAlign verticalAlignment);
[<Android.Runtime.Register(".ctor", "(Landroid/graphics/drawable/Drawable;Ljava/lang/String;I)V", "")>]
new Android.Text.Style.ImageSpan : Android.Graphics.Drawables.Drawable * string * Android.Text.Style.SpanAlign -> Android.Text.Style.ImageSpan
Parameters
- drawable
- Drawable
drawable to be rendered
- source
- String
drawable's uri source
- verticalAlignment
- SpanAlign
one of DynamicDrawableSpan#ALIGN_BOTTOM
or
DynamicDrawableSpan#ALIGN_BASELINE
- Attributes
Remarks
Constructs an ImageSpan
from a drawable, a source and a vertical alignment.
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
ImageSpan(Context, Int32, SpanAlign)
Constructs an ImageSpan
from a Context
, a resource id and a vertical
alignment.
[Android.Runtime.Register(".ctor", "(Landroid/content/Context;II)V", "")]
public ImageSpan (Android.Content.Context context, int resourceId, Android.Text.Style.SpanAlign verticalAlignment);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;II)V", "")>]
new Android.Text.Style.ImageSpan : Android.Content.Context * int * Android.Text.Style.SpanAlign -> Android.Text.Style.ImageSpan
Parameters
- context
- Context
context used to retrieve the drawable from resources
- resourceId
- Int32
drawable resource id based on which the drawable is retrieved.
- verticalAlignment
- SpanAlign
one of DynamicDrawableSpan#ALIGN_BOTTOM
or
DynamicDrawableSpan#ALIGN_BASELINE
- Attributes
Remarks
Constructs an ImageSpan
from a Context
, a resource id and a vertical alignment.
Java documentation for android.text.style.ImageSpan.ImageSpan(android.content.Context, int, 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
ImageSpan(Context, Uri, SpanAlign)
Constructs an ImageSpan
from a Context
, a Uri
and a vertical
alignment.
[Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/net/Uri;I)V", "")]
public ImageSpan (Android.Content.Context context, Android.Net.Uri uri, Android.Text.Style.SpanAlign verticalAlignment);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/net/Uri;I)V", "")>]
new Android.Text.Style.ImageSpan : Android.Content.Context * Android.Net.Uri * Android.Text.Style.SpanAlign -> Android.Text.Style.ImageSpan
Parameters
- context
- Context
context used to create a drawable from based on the display metrics of the resources
- uri
- Uri
Uri
used to construct the drawable that will be rendered.
- verticalAlignment
- SpanAlign
one of DynamicDrawableSpan#ALIGN_BOTTOM
or
DynamicDrawableSpan#ALIGN_BASELINE
- Attributes
Remarks
Constructs an ImageSpan
from a Context
, a Uri
and a vertical alignment. The Uri source can be retrieved via #getSource()
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
ImageSpan(Context, Bitmap, SpanAlign)
Constructs an ImageSpan
from a Context
, a Bitmap
and a vertical
alignment.
[Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/graphics/Bitmap;I)V", "")]
public ImageSpan (Android.Content.Context context, Android.Graphics.Bitmap bitmap, Android.Text.Style.SpanAlign verticalAlignment);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/graphics/Bitmap;I)V", "")>]
new Android.Text.Style.ImageSpan : Android.Content.Context * Android.Graphics.Bitmap * Android.Text.Style.SpanAlign -> Android.Text.Style.ImageSpan
Parameters
- context
- Context
context used to create a drawable from based on the display metrics of the resources
- bitmap
- Bitmap
bitmap to be rendered
- verticalAlignment
- SpanAlign
one of DynamicDrawableSpan#ALIGN_BOTTOM
or
DynamicDrawableSpan#ALIGN_BASELINE
- Attributes
Remarks
Constructs an ImageSpan
from a Context
, a Bitmap
and a vertical alignment.
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
ImageSpan(Drawable, String)
Constructs an ImageSpan
from a drawable and a source with the default
alignment DynamicDrawableSpan#ALIGN_BOTTOM
[Android.Runtime.Register(".ctor", "(Landroid/graphics/drawable/Drawable;Ljava/lang/String;)V", "")]
public ImageSpan (Android.Graphics.Drawables.Drawable drawable, string source);
[<Android.Runtime.Register(".ctor", "(Landroid/graphics/drawable/Drawable;Ljava/lang/String;)V", "")>]
new Android.Text.Style.ImageSpan : Android.Graphics.Drawables.Drawable * string -> Android.Text.Style.ImageSpan
Parameters
- drawable
- Drawable
drawable to be rendered
- source
- String
drawable's Uri source
- Attributes
Remarks
Constructs an ImageSpan
from a drawable and a source with the default alignment DynamicDrawableSpan#ALIGN_BOTTOM
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
ImageSpan(IntPtr, JniHandleOwnership)
A constructor used when creating managed representations of JNI objects; called by the runtime.
protected ImageSpan (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Text.Style.ImageSpan : nativeint * Android.Runtime.JniHandleOwnership -> Android.Text.Style.ImageSpan
Parameters
- 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
ImageSpan(Bitmap, SpanAlign)
Caution
deprecated
This member is deprecated.
[Android.Runtime.Register(".ctor", "(Landroid/graphics/Bitmap;I)V", "")]
[System.Obsolete("deprecated")]
public ImageSpan (Android.Graphics.Bitmap b, Android.Text.Style.SpanAlign verticalAlignment);
[<Android.Runtime.Register(".ctor", "(Landroid/graphics/Bitmap;I)V", "")>]
[<System.Obsolete("deprecated")>]
new Android.Text.Style.ImageSpan : Android.Graphics.Bitmap * Android.Text.Style.SpanAlign -> Android.Text.Style.ImageSpan
Parameters
- b
- Bitmap
- verticalAlignment
- SpanAlign
- Attributes
Remarks
This member is deprecated. Use #ImageSpan(Context, Bitmap, int)
instead.
Java documentation for android.text.style.ImageSpan.ImageSpan(android.graphics.Bitmap, 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
ImageSpan(Context, Int32)
Constructs an ImageSpan
from a Context
and a resource id with the default
alignment DynamicDrawableSpan#ALIGN_BOTTOM
[Android.Runtime.Register(".ctor", "(Landroid/content/Context;I)V", "")]
public ImageSpan (Android.Content.Context context, int resourceId);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;I)V", "")>]
new Android.Text.Style.ImageSpan : Android.Content.Context * int -> Android.Text.Style.ImageSpan
Parameters
- context
- Context
context used to retrieve the drawable from resources
- resourceId
- Int32
drawable resource id based on which the drawable is retrieved
- Attributes
Remarks
Constructs an ImageSpan
from a Context
and a resource id with the default alignment DynamicDrawableSpan#ALIGN_BOTTOM
Java documentation for android.text.style.ImageSpan.ImageSpan(android.content.Context, 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
ImageSpan(Context, Uri)
Constructs an ImageSpan
from a Context
and a Uri
with the default
alignment DynamicDrawableSpan#ALIGN_BOTTOM
.
[Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/net/Uri;)V", "")]
public ImageSpan (Android.Content.Context context, Android.Net.Uri uri);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/net/Uri;)V", "")>]
new Android.Text.Style.ImageSpan : Android.Content.Context * Android.Net.Uri -> Android.Text.Style.ImageSpan
Parameters
- context
- Context
context used to create a drawable from based on the display metrics of the resources
- uri
- Uri
Uri
used to construct the drawable that will be rendered
- Attributes
Remarks
Constructs an ImageSpan
from a Context
and a Uri
with the default alignment DynamicDrawableSpan#ALIGN_BOTTOM
. The Uri source can be retrieved via #getSource()
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
ImageSpan(Context, Bitmap)
Constructs an ImageSpan
from a Context
and a Bitmap
with the default
alignment DynamicDrawableSpan#ALIGN_BOTTOM
[Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/graphics/Bitmap;)V", "")]
public ImageSpan (Android.Content.Context context, Android.Graphics.Bitmap bitmap);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/graphics/Bitmap;)V", "")>]
new Android.Text.Style.ImageSpan : Android.Content.Context * Android.Graphics.Bitmap -> Android.Text.Style.ImageSpan
Parameters
- context
- Context
context used to create a drawable from based on the display metrics of the resources
- bitmap
- Bitmap
bitmap to be rendered
- Attributes
Remarks
Constructs an ImageSpan
from a Context
and a Bitmap
with the default alignment DynamicDrawableSpan#ALIGN_BOTTOM
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
ImageSpan(Drawable)
Constructs an ImageSpan
from a drawable with the default
alignment DynamicDrawableSpan#ALIGN_BOTTOM
.
[Android.Runtime.Register(".ctor", "(Landroid/graphics/drawable/Drawable;)V", "")]
public ImageSpan (Android.Graphics.Drawables.Drawable drawable);
[<Android.Runtime.Register(".ctor", "(Landroid/graphics/drawable/Drawable;)V", "")>]
new Android.Text.Style.ImageSpan : Android.Graphics.Drawables.Drawable -> Android.Text.Style.ImageSpan
Parameters
- drawable
- Drawable
drawable to be rendered
- Attributes
Remarks
Constructs an ImageSpan
from a drawable with the default alignment DynamicDrawableSpan#ALIGN_BOTTOM
.
Java documentation for android.text.style.ImageSpan.ImageSpan(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
ImageSpan(Drawable, SpanAlign)
Constructs an ImageSpan
from a drawable and a vertical alignment.
[Android.Runtime.Register(".ctor", "(Landroid/graphics/drawable/Drawable;I)V", "")]
public ImageSpan (Android.Graphics.Drawables.Drawable drawable, Android.Text.Style.SpanAlign verticalAlignment);
[<Android.Runtime.Register(".ctor", "(Landroid/graphics/drawable/Drawable;I)V", "")>]
new Android.Text.Style.ImageSpan : Android.Graphics.Drawables.Drawable * Android.Text.Style.SpanAlign -> Android.Text.Style.ImageSpan
Parameters
- drawable
- Drawable
drawable to be rendered
- verticalAlignment
- SpanAlign
one of DynamicDrawableSpan#ALIGN_BOTTOM
or
DynamicDrawableSpan#ALIGN_BASELINE
- Attributes
Remarks
Constructs an ImageSpan
from a drawable and a vertical alignment.
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.