Package android.text
Interface Spannable
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classSpannable.FactoryFactory used by TextView to create newSpannables.
-
Field Summary
-
Fields inherited from interface android.text.Spanned
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
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidremoveSpan(java.lang.Object what)Remove the specified object from the range of text to which it was attached, if any.default voidremoveSpan(java.lang.Object what, int flags)Remove the specified object from the range of text to which it was attached, if any.voidsetSpan(java.lang.Object what, int start, int end, int flags)Attach the specified markup object to the rangestart…endof the text, or move the object to that range if it was already attached elsewhere.-
Methods inherited from interface java.lang.CharSequence
charAt, chars, codePoints, length, subSequence, toString
-
Methods inherited from interface android.text.Spanned
getSpanEnd, getSpanFlags, getSpans, getSpanStart, nextSpanTransition
-
-
-
-
Method Detail
-
setSpan
void setSpan(java.lang.Object what, int start, int end, int flags)Attach the specified markup object to the rangestart…endof the text, or move the object to that range if it was already attached elsewhere. SeeSpannedfor 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 ofCharacterStyleandParagraphStyle, andTextWatcherandSpanWatcher.
-
removeSpan
void removeSpan(java.lang.Object what)
Remove the specified object from the range of text to which it was attached, if any. It is OK to remove an object that was never attached in the first place.
-
removeSpan
default void removeSpan(java.lang.Object what, int flags)Remove the specified object from the range of text to which it was attached, if any. It is OK to remove an object that was never attached in the first place. SeeSpannedfor an explanation of what the flags mean.
-
-