How to search ListView in Android (Contact's style)

M.V. picture M.V. · Mar 28, 2011 · Viewed 14.4k times · Source

I have a question regarding application I am building. I have a custom listview defined. It is backed with the DB data.

I want that I could press search button and that search would appear (the same way as it is done on contacts list), but I have no idea how to handle that. I like search type in contacts a lot because it is changing while typing.

I would be pleased with any advice.

Thank you a lot!

Answer

Pedro Loureiro picture Pedro Loureiro · Mar 28, 2011

You can do that in two steps:

Build a filterable list - How to dynamically update a ListView on Android

And create a search interface.