public abstract class TextInlineImageSpan
extends android.text.style.ReplacementSpan
Constructor and Description |
---|
TextInlineImageSpan() |
Modifier and Type | Method and Description |
---|---|
abstract android.graphics.drawable.Drawable |
getDrawable()
Get the drawable that is span represents.
|
abstract int |
getHeight()
Get the height of the span.
|
abstract int |
getWidth()
Get the width of the span.
|
abstract void |
onAttachedToWindow()
Called by the text view from
View.onAttachedToWindow() . |
abstract void |
onDetachedFromWindow()
Called by the text view from
View.onDetachedFromWindow() , |
abstract void |
onFinishTemporaryDetach()
Called by the text view from
View.onFinishTemporaryDetach() . |
abstract void |
onStartTemporaryDetach()
Called by the text view from
View.onStartTemporaryDetach() . |
static void |
possiblyUpdateInlineImageSpans(android.text.Spannable spannable,
android.widget.TextView view)
For TextInlineImageSpan we need to update the Span to know that the window is attached and
the TextView that we will set as the callback on the Drawable.
|
abstract void |
setTextView(android.widget.TextView textView)
Set the textview that will contain this span.
|
public static void possiblyUpdateInlineImageSpans(android.text.Spannable spannable, android.widget.TextView view)
spannable
- The spannable that may contain TextInlineImageSpansview
- The view which will be set as the callback for the Drawable@Nullable public abstract android.graphics.drawable.Drawable getDrawable()
public abstract void onDetachedFromWindow()
View.onDetachedFromWindow()
,public abstract void onStartTemporaryDetach()
View.onStartTemporaryDetach()
.public abstract void onAttachedToWindow()
View.onAttachedToWindow()
.public abstract void onFinishTemporaryDetach()
View.onFinishTemporaryDetach()
.public abstract void setTextView(android.widget.TextView textView)
public abstract int getWidth()
public abstract int getHeight()