Custom spinner popup in android

Is there a way to replace the standard ListView that appears when Spinner opens using a special one? I would like my Spinner list to be Filterable (and / or even possibly have two tabs with different lists for which the user could select options).

Is this achievable or should I implement my own alltogether implementation?

+4
source share
1 answer

Answer: you do not need to implement your own implementation. What you need to do is create a class that extends Spinner and overrides the performClick event and creates your own dialog for display instead of the standard one. Then you will need to configure the list in the dialog box.

In my case, I also created my own SpinnerAdapter to implement the Filterable interface and used this combo adapter.

+3
source

All Articles