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
2010-03-02 21:32:05
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
2010-03-02 21:40:54