Example usage for Java android.text SpannableString fields, constructors, methods, implement or subclass
The text is from its open source code.
SpannableString(CharSequence source) For the backward compatibility reasons, this constructor copies all spans including android.text.NoCopySpan . |
char | charAt(int index) Returns the char value at the specified index. |
int | getSpanEnd(Object tag) Return the end of the range of text to which the specified markup object is attached, or -1 if the object is not attached. |
int | getSpanFlags(Object tag) Return the flags that were specified when Spannable#setSpan was used to attach the specified markup object, or 0 if the specified object has not been attached. |
T[] | getSpans(int start, int end, Class Return an array of the markup objects attached to the specified slice of this CharSequence and whose type is the specified type or a subclass of it. |
int | getSpanStart(Object tag) Return the beginning of the range of text to which the specified markup object is attached, or -1 if the object is not attached. |
int | length() Returns the length of this character sequence. |
int | nextSpanTransition(int start, int limit, Class type) Return the first offset greater than start where a markup object of class type begins or ends, or limit if there are no starts or ends greater than start but less than limit . |
void | removeSpan(Object what) |
void | setSpan(Object what, int start, int end, int flags) |
CharSequence | subSequence(int start, int end) |
String | toString() Returns a string containing the characters in this sequence in the same order as this sequence. |
SpannableString | valueOf(CharSequence source) |