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

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

Introduction

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

The text is from its open source code.

Method

Editableappend(CharSequence text)
Convenience for replace(length(), length(), text, 0, text.length())
Editableappend(char text)
Convenience for append(String.valueOf(text)).
Editableappend(CharSequence text, int start, int end)
Convenience for replace(length(), length(), text, start, end)
charcharAt(int index)
Returns the char value at the specified index.
voidclear()
Convenience for replace(0, length(), "", 0, 0).
Editabledelete(int st, int en)
Convenience for replace(st, en, "", 0, 0)
voidgetChars(int start, int end, char[] dest, int destoff)
Exactly like String.getChars(): copy chars start through end - 1 from this CharSequence into dest beginning at offset destoff.
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.
inthashCode()
Returns a hash code value for the object.
Editableinsert(int where, CharSequence text)
Convenience for replace(where, where, text, 0, text.length());
intlength()
Returns the length of this character sequence.
voidremoveSpan(Object what)
Remove the specified object from the range of text to which it was attached, if any.
Editablereplace(int st, int en, CharSequence text)
Convenience for replace(st, en, text, 0, text.length())
Editablereplace(int st, int en, CharSequence source, int start, int end)
Replaces the specified range (st…en) of text in this Editable with a copy of the slice start…end from source.
voidsetSpan(Object what, int start, int end, int flags)
Attach the specified markup object to the range start…end of the text, or move the object to that range if it was already attached elsewhere.
CharSequencesubSequence(int start, int end)
Returns a CharSequence that is a subsequence of this sequence.
StringtoString()
Returns a string containing the characters in this sequence in the same order as this sequence.