Selection

Class of android.text · Selection.java · Android's reference

public class Selection

The cursor and the selection of a text, kept as two spans on it.

Fields

public static final Object SELECTION_START source
public static final Object SELECTION_END source

Methods

public static final int getSelectionStart(CharSequence text) source
public static final int getSelectionEnd(CharSequence text) source
public static void setSelection(Spannable text, int start, int stop) source
public static final void setSelection(Spannable text, int index) source
public static final void selectAll(Spannable text) source
public static final void extendSelection(Spannable text, int index) source
public static final void removeSelection(Spannable text) source

Made from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.