java.lang.Object | |||
↳ | android.text.method.MetaKeyKeyListener | ||
↳ | android.text.method.BaseKeyListener | ||
↳ | android.text.method.QwertyKeyListener |
This is the standard key listener for alphabetic input on qwerty keyboards. You should generally not need to instantiate this yourself; TextKeyListener will do it for you.
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.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
android.text.method.MetaKeyKeyListener
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns a new or existing instance with the specified capitalization
and correction properties.
| |||||||||||
Gets an instance of the listener suitable for use with full keyboards.
| |||||||||||
Marks the specified region of
content as having
contained original prior to AutoText replacement. | |||||||||||
Handles presses of the meta keys.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
android.text.method.BaseKeyListener
| |||||||||||
From class
android.text.method.MetaKeyKeyListener
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
android.text.method.KeyListener
|
Returns a new or existing instance with the specified capitalization and correction properties.
Gets an instance of the listener suitable for use with full keyboards. Disables auto-capitalization, auto-text and long-press initiated on-screen character pickers.
Marks the specified region of content
as having
contained original
prior to AutoText replacement.
Call this method when you have done or are about to do an
AutoText-style replacement on a region of text and want to let
the same mechanism (the user pressing DEL immediately after the
change) undo the replacement.
content | the Editable text where the replacement was made |
---|---|
start | the start of the replaced region |
end | the end of the replaced region; the location of the cursor |
original | the text to be restored if the user presses DEL |
Handles presses of the meta keys.