Skip to content
Advertisement

Creating a search box for quick entry in the spinner

The idea is what. Available:
Spiner, adapter and array from where the spinner receives data.
I would like to add a window to the spinner so that you can enter the first letters and the spinner, in addition to the entire list, would give out matches
An example of such a window:

enter image description here

Array and Spinner:

JavaScript

Adapter:

JavaScript

Advertisement

Answer

Found on Google a library called, which allows just changing one line (write "com.toptoche.searchablespinnerlibrary.SearchableSpinner" instead of "Spinner") and that’s it, the problem is solved.

https://github.com/miteshpithadiya/SearchableSpinner

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement