I am using a SearchView widget to search text in a ListView.
When entering text a virtual keyboard opens.
I want to repeat the search when the "spyglass key" is pressed.
How can I intercept the virtual keyboard key events?
Note: do not confuse the spyglass key, which is in the virtual keyboard, bottom right, with the spyglass icon in the SearchView widget.
I'll tell you what I tried and therefore I know it does not work:
- onQueryTextChange() on the SearchView
- onKeyListener() on the SearchView
- TextWatcher() on the SearchView
- dispatchKeyEvent() on the ListView