public class Editor extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Editor.EditOperation
An operation to undo a single "edit" to a text view.
|
static interface |
Editor.HandleType |
class |
Editor.HandleView |
class |
Editor.SuggestionsPopupWindow |
static class |
Editor.UndoInputFilter
An InputFilter that monitors text input to maintain undo history.
|
Modifier and Type | Field and Description |
---|---|
static int |
HANDLE_TYPE_SELECTION_END |
static int |
HANDLE_TYPE_SELECTION_START |
Modifier and Type | Method and Description |
---|---|
void |
addSpanWatchers(Spannable text) |
void |
beginBatchEdit() |
void |
endBatchEdit() |
Drawable[] |
getCursorDrawable() |
Editor.SuggestionsPopupWindow |
getSuggestionsPopupWindowForTesting() |
WordIterator |
getWordIterator() |
void |
onCommitCorrection(CorrectionInfo info)
Called by the framework in response to a text auto-correction (such as fixing a typo using a
a dictionary) from the current input method, provided by it calling
InputConnection.commitCorrection(android.view.inputmethod.CorrectionInfo) InputConnection.commitCorrection()}. |
boolean |
performLongClick(boolean handled) |
void |
setError(CharSequence error,
Drawable icon) |
protected void |
stopTextActionMode() |
public static final int HANDLE_TYPE_SELECTION_START
public static final int HANDLE_TYPE_SELECTION_END
public void setError(CharSequence error, Drawable icon)
public WordIterator getWordIterator()
public boolean performLongClick(boolean handled)
public void beginBatchEdit()
public void endBatchEdit()
protected void stopTextActionMode()
public Drawable[] getCursorDrawable()
public void onCommitCorrection(CorrectionInfo info)
InputConnection.commitCorrection(android.view.inputmethod.CorrectionInfo)
InputConnection.commitCorrection()}. The default
implementation flashes the background of the corrected word to provide feedback to the user.info
- The auto correct info about the text that was corrected.public void addSpanWatchers(Spannable text)
public Editor.SuggestionsPopupWindow getSuggestionsPopupWindowForTesting()