I want to add some code when user press and hold the button. I try use
change the focus function. I wrote the similar code like onClick. But it was
never called when I moved curer to button and it was focused.
Button button = (Button) findViewById(R.id.*channel_up*);
button.setOnFocusChangeListener(*new* Button.OnFocusChangeListener() {
*public* *void* onFocusChange(View v, *boolean* hasFocus) {
}
Thanks
Shude
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---