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
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
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
3 matches
Mail list logo