[android-developers] Re: How to listen for 'Enter Key is press' Event

2009-06-21 Thread 2hill
To get the orange foreground you need to describe the in the xml as focusable. Then add the corresponding focused drawable. when the user runs over it the resources will pull the focused drawable. Hope that helps! On Jun 21, 1:25 am, n179911 n179...@gmail.com wrote: Hi, I have a view and

[android-developers] Re: How to listen for 'Enter Key is press' Event

2009-06-21 Thread n179911
Thanks. I would like to know how to listen for 'Enter Pressed' Key event for my view? On Sun, Jun 21, 2009 at 6:09 AM, 2hilldead2h...@gmail.com wrote: To get the orange foreground you need to describe the in the xml as focusable. Then add the corresponding focused drawable. when the user

[android-developers] Re: How to listen for 'Enter Key is press' Event

2009-06-21 Thread Ty
Pretty sure you need to override the onKeyDown method Example: @Override public boolean onKeyDown(int keyCode, KeyEvent event) { switch (keyCode) { case KeyEvent.KEYCODE_DEL: case KeyEvent.KEYCODE_ENTER: // do some stuff