w.donahue
w.donahue

Reputation: 10886

Android ListView and Keyboard

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

Answers (1)

Tanmay Mandal
Tanmay Mandal

Reputation: 40168

Use setOnItemClickListener instead of setOnClickListener

Edit
Use an attribute like on your list item

android:focusable="false"

Upvotes: 1

Related Questions