Example usage for Java android.text SpannableStringBuilder fields, constructors, methods, implement or subclass
The text is from its open source code.
SpannableStringBuilder() Create a new SpannableStringBuilder with empty contents | |
SpannableStringBuilder(CharSequence text) Create a new SpannableStringBuilder containing a copy of the specified text, including its spans if any. | |
SpannableStringBuilder(CharSequence text, int start, int end) Create a new SpannableStringBuilder containing a copy of the specified slice of the specified text, including its spans if any. |
SpannableStringBuilder | append(CharSequence text) |
SpannableStringBuilder | append(char text) |
SpannableStringBuilder | append(CharSequence text, Object what, int flags) Appends the character sequence text and spans what over the appended part. |
SpannableStringBuilder | append(CharSequence text, int start, int end) |
char | charAt(int where) Return the char at the specified offset within the buffer. |
void | clear() |
void | clearSpans() |
SpannableStringBuilder | delete(int start, int end) |
int | getSpanEnd(Object what) Return the buffer offset of the end of the specified markup object, or -1 if it is not attached to this buffer. |
int | getSpanFlags(Object what) Return the flags of the end of the specified markup object, or 0 if it is not attached to this buffer. |
T[] | getSpans(int queryStart, int queryEnd, @Nullable Class Return an array of the spans of the specified type that overlap the specified range of the buffer. |
int | getSpanStart(Object what) Return the buffer offset of the beginning of the specified markup object, or -1 if it is not attached to this buffer. |
SpannableStringBuilder | insert(int where, CharSequence tb) |
SpannableStringBuilder | insert(int where, CharSequence tb, int start, int end) |
int | length() Return the number of chars in the buffer. |
void | removeSpan(Object what) Remove the specified markup object from the buffer. |
SpannableStringBuilder | replace(int start, int end, CharSequence tb) |
void | setSpan(Object what, int start, int end, int flags) Mark the specified range of text with the specified object. |
CharSequence | subSequence(int start, int end) Return a new CharSequence containing a copy of the specified range of this buffer, including the overlapping spans. |
String | toString() Return a String containing a copy of the chars in this buffer. |
SpannableStringBuilder | valueOf(CharSequence source) |