Java android.text.style ImageSpan fields, constructors, methods, implement or subclass

Example usage for Java android.text.style ImageSpan fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.text.style ImageSpan.

The text is from its open source code.

Constructor

ImageSpan(@NonNull Bitmap b, int verticalAlignment)
ImageSpan(@NonNull Context context, @NonNull Bitmap bitmap)
Constructs an ImageSpan from a Context and a Bitmap with the default alignment DynamicDrawableSpan#ALIGN_BOTTOM
ImageSpan(@NonNull Drawable drawable, int verticalAlignment)
Constructs an ImageSpan from a drawable and a vertical alignment.
ImageSpan(@NonNull Drawable drawable, @NonNull String source)
Constructs an ImageSpan from a drawable and a source with the default alignment DynamicDrawableSpan#ALIGN_BOTTOM
ImageSpan(@NonNull Context context, @NonNull Uri uri)
Constructs an ImageSpan from a Context and a Uri with the default alignment DynamicDrawableSpan#ALIGN_BOTTOM .
ImageSpan(@NonNull Context context, @DrawableRes int resourceId)
Constructs an ImageSpan from a Context and a resource id with the default alignment DynamicDrawableSpan#ALIGN_BOTTOM
ImageSpan(@NonNull Bitmap b)
ImageSpan(@NonNull Drawable drawable)
Constructs an ImageSpan from a drawable with the default alignment DynamicDrawableSpan#ALIGN_BOTTOM .
ImageSpan(@NonNull Context context, @NonNull Bitmap bitmap, int verticalAlignment)
Constructs an ImageSpan from a Context , a Bitmap and a vertical alignment.
ImageSpan(@NonNull Drawable drawable, @NonNull String source, int verticalAlignment)
Constructs an ImageSpan from a drawable, a source and a vertical alignment.
ImageSpan(@NonNull Context context, @NonNull Uri uri, int verticalAlignment)
Constructs an ImageSpan from a Context , a Uri and a vertical alignment.
ImageSpan(@NonNull Context context, @DrawableRes int resourceId, int verticalAlignment)
Constructs an ImageSpan from a Context , a resource id and a vertical alignment.

Method

DrawablegetDrawable()
StringgetSource()
Returns the source string that was saved during construction.