public interface Spannable extends Spanned
Editable
for that.Modifier and Type | Interface and Description |
---|---|
static class |
Spannable.Factory
Factory used by TextView to create new Spannables.
|
SPAN_COMPOSING, SPAN_EXCLUSIVE_EXCLUSIVE, SPAN_EXCLUSIVE_INCLUSIVE, SPAN_INCLUSIVE_EXCLUSIVE, SPAN_INCLUSIVE_INCLUSIVE, SPAN_INTERMEDIATE, SPAN_MARK_MARK, SPAN_MARK_POINT, SPAN_PARAGRAPH, SPAN_POINT_MARK, SPAN_POINT_MARK_MASK, SPAN_POINT_POINT, SPAN_PRIORITY, SPAN_PRIORITY_SHIFT, SPAN_USER, SPAN_USER_SHIFT
Modifier and Type | Method and Description |
---|---|
void |
removeSpan(Object what)
Remove the specified object from the range of text to which it
was attached, if any.
|
void |
setSpan(Object what,
int start,
int end,
int flags)
Attach the specified markup object to the range
start…end
of the text, or move the object to that range if it was already
attached elsewhere. |
getSpanEnd, getSpanFlags, getSpans, getSpanStart, nextSpanTransition
charAt, chars, codePoints, length, subSequence, toString
void setSpan(Object what, int start, int end, int flags)
start…end
of the text, or move the object to that range if it was already
attached elsewhere. See Spanned
for an explanation of
what the flags mean. The object can be one that has meaning only
within your application, or it can be one that the text system will
use to affect text display or behavior. Some noteworthy ones are
the subclasses of CharacterStyle
and
ParagraphStyle
, and
TextWatcher
and
SpanWatcher
.void removeSpan(Object what)