FileDocCategorySizeDatePackage
SpannableString.javaAPI DocAndroid 1.5 API1722Wed May 06 22:41:56 BST 2009android.text

SpannableString

public class SpannableString extends SpannableStringInternal implements CharSequence, GetChars, Spannable
This is the class for text whose content is immutable but to which markup objects can be attached and detached. For mutable text, see {@link SpannableStringBuilder}.

Fields Summary
Constructors Summary
public SpannableString(CharSequence source)

        super(source, 0, source.length());
    
private SpannableString(CharSequence source, int start, int end)

        super(source, start, end);
    
Methods Summary
public voidremoveSpan(java.lang.Object what)

        super.removeSpan(what);
    
public voidsetSpan(java.lang.Object what, int start, int end, int flags)

        super.setSpan(what, start, end, flags);
    
public final java.lang.CharSequencesubSequence(int start, int end)

        return new SpannableString(this, start, end);
    
public static android.text.SpannableStringvalueOf(java.lang.CharSequence source)

        if (source instanceof SpannableString) {
            return (SpannableString) source;
        } else {
            return new SpannableString(source);
        }