Reputation: 10886
I have created a custom ListView with custom rows. They work just fine when using the touchscreen; however, when I attempt to click on the items in the row with the keyboard D-Pad nothing happens. By that I mean my OnClickListener is not called. Does anyone know of any good references or tutorials on how to add keyboard support for new custom rows in a ListView?
Upvotes: 0
Views: 1368
Reputation: 40168
Use setOnItemClickListener
instead of setOnClickListener
Edit
Use an attribute like on your list item
android:focusable="false"
Upvotes: 1