Java android.text SpannableStringBuilder fields, constructors, methods, implement or subclass

Example usage for Java android.text SpannableStringBuilder fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.text SpannableStringBuilder.

The text is from its open source code.

Subclass

android.text.SpannableStringBuilder has subclasses.
Click this link to see all its subclasses.

Constructor

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.

Method

SpannableStringBuilderappend(CharSequence text)
SpannableStringBuilderappend(char text)
SpannableStringBuilderappend(CharSequence text, Object what, int flags)
Appends the character sequence text and spans what over the appended part.
SpannableStringBuilderappend(CharSequence text, int start, int end)
charcharAt(int where)
Return the char at the specified offset within the buffer.
voidclear()
voidclearSpans()
SpannableStringBuilderdelete(int start, int end)
intgetSpanEnd(Object what)
Return the buffer offset of the end of the specified markup object, or -1 if it is not attached to this buffer.
intgetSpanFlags(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 kind)
Return an array of the spans of the specified type that overlap the specified range of the buffer.
intgetSpanStart(Object what)
Return the buffer offset of the beginning of the specified markup object, or -1 if it is not attached to this buffer.
SpannableStringBuilderinsert(int where, CharSequence tb)
SpannableStringBuilderinsert(int where, CharSequence tb, int start, int end)
intlength()
Return the number of chars in the buffer.
voidremoveSpan(Object what)
Remove the specified markup object from the buffer.
SpannableStringBuilderreplace(int start, int end, CharSequence tb)
voidsetSpan(Object what, int start, int end, int flags)
Mark the specified range of text with the specified object.
CharSequencesubSequence(int start, int end)
Return a new CharSequence containing a copy of the specified range of this buffer, including the overlapping spans.
StringtoString()
Return a String containing a copy of the chars in this buffer.
SpannableStringBuildervalueOf(CharSequence source)