I'm struggling with the construction of a sort of SpinnerSearch.
I have a custom spinner, consisting of an EditText and two buttons.
I would like to replace the EditText with a SearchView (yours with a few changes).
The SearchView contains a ListView, which is added to the Parent of SpinnerSearch (let's Main Activity).
Depending on the position of the SpinnerSearch, the listview must be positioned above or below, according to the space available and the spinner must change its position when the keyboard changes appears/disappears.
In short, it's complicated!
It works, but forcing the programmer to do what I wrote in #1.
I could create the SpinnerSearch in a single class module, and probably I would not have that problem, but I would also like to be able to reuse the code, in this case the SearchView.
Another problem (yes, I will open a new post for this
) is that the ListView must close when the SpinnerSearch loses focus, but the spinner does not lose focus if you click on a button, for example.