Android (Milestone/Droid): View.OnKeyListener not working correctly?

Posted by Ice09 on Stack Overflow See other posts from Stack Overflow or by Ice09
Published on 2010-01-07T09:31:12Z Indexed on 2010/05/19 11:20 UTC
Read the original article Hit count: 361

Filed under:
|
|
|

I am using a simple EditText and register an View.OnKeyListener. Some GUI changes should happen (fading in/out of views) when certain conditions for the EditView text apply. In the emulator, this works as expected. On the Motorola Droid/Milestone, the listener does not work, only

  1. after pressing DEL, the listener is called the first time and always afterwards
  2. when activating the number input, the listener works correctly

Note: I deactivated the suggestions with TYPE_TEXT_FLAG_NO_SUGGESTIONS and used the IME action IME_ACTION_GO to have a workaround for this (otherwise the user could not "start" a request).

© Stack Overflow or respective owner

Related posts about android

Related posts about milestone