java.lang.Object | |||
↳ | android.text.method.MetaKeyKeyListener | ||
↳ | android.text.method.BaseKeyListener | ||
↳ | android.text.method.TextKeyListener |
This is the key listener for typing normal text. It delegates to other key listeners appropriate to the current keyboard and language.
As for all implementations ofKeyListener
, this class is only concerned
with hardware keyboards. Software input methods have no obligation to trigger
the methods in this class.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
TextKeyListener.Capitalize |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
android.text.method.MetaKeyKeyListener
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new TextKeyListener with the specified capitalization
and correction properties.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Clear all the input state (autotext, autocap, multitap, undo)
from the specified Editable, going beyond Editable.clear(), which
just clears the text but not the input state.
| |||||||||||
Returns a new or existing instance with no automatic capitalization
or correction.
| |||||||||||
Returns a new or existing instance with the specified capitalization
and correction properties.
| |||||||||||
Handles presses of the meta keys.
| |||||||||||
Base implementation handles ACTION_MULTIPLE KEYCODE_UNKNOWN by inserting
the event's text into the content.
| |||||||||||
Handles release of the meta keys.
| |||||||||||
This method is called to notify you that the specified object
has been attached to the specified range of the text.
| |||||||||||
This method is called to notify you that the specified object
has been relocated from the range
ostart…oend
to the new range nstart…nend of the text. | |||||||||||
This method is called to notify you that the specified object
has been detached from the specified range of the text.
| |||||||||||
Returns whether it makes sense to automatically capitalize at the
specified position in the specified text, with the specified rules.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
android.text.method.BaseKeyListener
| |||||||||||
From class
android.text.method.MetaKeyKeyListener
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
android.text.SpanWatcher
| |||||||||||
From interface
android.text.method.KeyListener
|
Creates a new TextKeyListener with the specified capitalization and correction properties.
cap | when, if ever, to automatically capitalize. |
---|---|
autotext | whether to automatically do spelling corrections. |
Clear all the input state (autotext, autocap, multitap, undo) from the specified Editable, going beyond Editable.clear(), which just clears the text but not the input state.
e | the buffer whose text and state are to be cleared. |
---|
Returns a new or existing instance with no automatic capitalization or correction.
Returns a new or existing instance with the specified capitalization and correction properties.
autotext | whether to automatically do spelling corrections. |
---|---|
cap | when, if ever, to automatically capitalize. |
Handles presses of the meta keys.
Base implementation handles ACTION_MULTIPLE KEYCODE_UNKNOWN by inserting the event's text into the content.
Handles release of the meta keys.
This method is called to notify you that the specified object has been attached to the specified range of the text.
This method is called to notify you that the specified object
has been relocated from the range ostart…oend
to the new range nstart…nend
of the text.
This method is called to notify you that the specified object has been detached from the specified range of the text.
Returns whether it makes sense to automatically capitalize at the specified position in the specified text, with the specified rules.
cap | the capitalization rules to consider. |
---|---|
cs | the text in which an insertion is being made. |
off | the offset into that text where the insertion is being made. |