public static interface Text.TextObserver
The onTextUpdated(java.lang.String, int, int, int) method in this class is called each time the text changes.
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
void |
onTextUpdated(String text,
int start,
int before,
int count) |
Called back when the text is changed.
|
void onTextUpdated(String text, int start, int before, int count)
This method is used to process the changed text, for example, to verify the input LOV
to get LOVE, for which text is LOVE, start is 3, before is 3,
and count is 1.
text - Indicates the current text.start - Indicates the start position of the text to be added.before - Indicates the length of the old text.count - Indicates the length of the text to be added.