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

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

Introduction

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

The text is from its open source code.

Subclass

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

Constructor

SpannableString(CharSequence source)
For the backward compatibility reasons, this constructor copies all spans including android.text.NoCopySpan .

Method

charcharAt(int index)
Returns the char value at the specified index.
intgetSpanEnd(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.
intgetSpanFlags(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 type)
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.
intgetSpanStart(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.
intlength()
Returns the length of this character sequence.
intnextSpanTransition(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.
voidremoveSpan(Object what)
voidsetSpan(Object what, int start, int end, int flags)
CharSequencesubSequence(int start, int end)
StringtoString()
Returns a string containing the characters in this sequence in the same order as this sequence.
SpannableStringvalueOf(CharSequence source)