Reputation: 1422
I have a program which has a custom listview. I searched a lot on google and all the custom listview search has been done using EditText field and then use addTextChangedListener(). Is there any way that can use search View on my action bar to search my custom ListView? I populated my ListView by using a custom adapter from Base Adapter. Best example is WhatsApp application.
Upvotes: 1
Views: 399
Reputation: 2843
You can use the same strategy for a search View. Just register an OnTextChangedListener for the SearchView and use it to filter your ListView
Upvotes: 1