Button - onKeyDown()

by redhatab » Wed, 25 Jun 2008 12:17:26 GMT

Sponsored Links

Is it possible to do something while a key is being clicked or is in
focus by the arrow keys.

For example, suppose there are multiple buttons on the screen. Now in
the keyDown event, can we change the text of the button. Or even if
the arrow keys are used to navigate through the buttons, and when this
particular button is in focus, can we make the changes to that
particular button.

And help is greatly appreciated.


Button - onKeyDown()

by Raj » Wed, 25 Jun 2008 15:21:20 GMT

 use OnFocusChangeListener interface and override its OnFocusChanged
method and set images to buttons it will work


Sponsored Links

Other Threads

1. Cannot find my own Apps in the Market

After 2.2 update I cannot find my own Apps in the android  market.


2. htc legend problem

i have htc legend
The problem with is that whenever i connect it with my computer it
i have windows 7 n XP
same error on both
i have installed htc sync latest version and my htc legend is updated
to 2.2 OS

i need a solution as soon as possible please


3. Play Wav file with dynamic path

4. Error while building kernel code for HTC G2

5. How to debug a Problem that MediaPlayerService Died without giving a Log/Stack info

6. onDraw doesn't get called after invalidate()

7. Load and stress testing with Monkey