Build 1.0_r1(from source)

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.
 

Method Detail

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.


Build 1.0_r1(from source)

Please submit a feedback, bug or feature