Example usage for Java android.text Selection fields, constructors, methods, implement or subclass
The text is from its open source code.
Object | SELECTION_START |
Object | SELECTION_END |
void | extendSelection(Spannable text, int index) Move the selection edge to offset index . |
int | getSelectionEnd(CharSequence text) Return the offset of the selection edge or cursor, or -1 if there is no selection or cursor. |
int | getSelectionStart(CharSequence text) Return the offset of the selection anchor or cursor, or -1 if there is no selection or cursor. |
void | removeSelection(Spannable text) Remove the selection or cursor, if any, from the text. |
void | selectAll(Spannable text) Select the entire text. |
void | setSelection(Spannable text, int index) Move the cursor to offset index . |
void | setSelection(Spannable text, int start, int stop) Set the selection anchor to start and the selection edge to stop . |