Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

How to add/modify listener for physical buttons?

$
0
0

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?


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>