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

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

Introduction

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

The text is from its open source code.

Field

Method

voidextendSelection(Spannable text, int index)
Move the selection edge to offset index.
intgetSelectionEnd(CharSequence text)
Return the offset of the selection edge or cursor, or -1 if there is no selection or cursor.
intgetSelectionStart(CharSequence text)
Return the offset of the selection anchor or cursor, or -1 if there is no selection or cursor.
voidremoveSelection(Spannable text)
Remove the selection or cursor, if any, from the text.
voidselectAll(Spannable text)
Select the entire text.
voidsetSelection(Spannable text, int index)
Move the cursor to offset index.
voidsetSelection(Spannable text, int start, int stop)
Set the selection anchor to start and the selection edge to stop.