tags:

views:

234

answers:

1

I set an ImageButton's click listener via setOnClickListener(), but it doesn't respond to trackball clicks like a regular Button.

+2  A: 

Yes, it does. This sample code works just fine with the D-pad/trackball:

http://github.com/commonsguy/cw-android/tree/master/Resources/Images/

CommonsWare
I realized that the reason it wasn't responding was because it was in a GridView. I think I should be using setOnItemClickListener rather than setOnClickListener for the individual items. See http://www.mail-archive.com/[email protected]/msg28348.html.
Brandon