views:

323

answers:

1

I need to filter the required information from list of data. I am really looking to use combobox for it

Does the android provide a way to make a combobox to filter the data? I have read on android developer forum that you can build custom components but I don't have any idea how does it work for combobox?

+1  A: 

There is no combobox, but you can use a Spinner and AutoCompleteTextView as briefly described in Building Custom Components. You can then use an adapter of your choice to house your data you want to filter. The example for AutoCompleteTextView shows how to do this with an ArrayAdapter. The notepad tutorial shows basics of using a DB adapter.

RickNotFred