android.text.style
Class ImageSpan
java.lang.Object
android.text.style.CharacterStyle
android.text.style.MetricAffectingSpan
android.text.style.ReplacementSpan
android.text.style.DynamicDrawableSpan
android.text.style.ImageSpan
- All Implemented Interfaces:
- UpdateLayout
public class ImageSpan
- extends DynamicDrawableSpan
|
Method Summary |
Drawable |
getDrawable()
Your subclass must implement this method to provide the bitmap
to be drawn. |
String |
getSource()
Returns the source string that was saved during construction. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ImageSpan
public ImageSpan(Bitmap b)
ImageSpan
public ImageSpan(Drawable d)
ImageSpan
public ImageSpan(Drawable d,
String source)
ImageSpan
public ImageSpan(Context context,
Uri uri)
ImageSpan
public ImageSpan(Context context,
int resourceId)
getDrawable
public Drawable getDrawable()
- Description copied from class:
DynamicDrawableSpan
- Your subclass must implement this method to provide the bitmap
to be drawn. The dimensions of the bitmap must be the same
from each call to the next.
- Specified by:
getDrawable in class DynamicDrawableSpan
getSource
public String getSource()
- Returns the source string that was saved during construction.
Please submit a feedback, bug or feature