I have an application that contains a listview of parts. I would like to be able to navigate up and down the listview using the volume up/down keys. Currently, I have an EditText item that displays the selected part. When I press the volume up/down button, the value in the EditText field is changing, so the mapping part appears to be working; however, I would like to eventually remove the EditText field and highlight the selected listview item (as it does in touch event). Is there a way to borrow the touch event listener for the volume up/down buttons so I can change the color of the selected item?
↧