android.text.method
Interface KeyListener
- All Known Implementing Classes:
- BaseKeyListener, DateKeyListener, DateTimeKeyListener, DialerKeyListener, DigitsKeyListener, MultiTapKeyListener, NumberKeyListener, QwertyKeyListener, TextKeyListener, TimeKeyListener
public interface KeyListener
|
Method Summary |
boolean |
onKeyDown(View view,
Editable text,
int keyCode,
KeyEvent event)
If the key listener wants to handle this key, return true,
otherwise return false and the caller (i.e. |
boolean |
onKeyUp(View view,
Editable text,
int keyCode,
KeyEvent event)
If the key listener wants to handle this key release, return true,
otherwise return false and the caller (i.e. |
onKeyDown
boolean onKeyDown(View view,
Editable text,
int keyCode,
KeyEvent event)
- If the key listener wants to handle this key, return true,
otherwise return false and the caller (i.e. the widget host)
will handle the key.
onKeyUp
boolean onKeyUp(View view,
Editable text,
int keyCode,
KeyEvent event)
- If the key listener wants to handle this key release, return true,
otherwise return false and the caller (i.e. the widget host)
will handle the key.
Please submit a feedback, bug or feature