4

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!

M.V.
  • 1,662
  • 8
  • 32
  • 55

1 Answers1

2

You can do that in two steps:

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

And create a search interface.

Community
  • 1
  • 1
Pedro Loureiro
  • 11,436
  • 2
  • 31
  • 37
  • Great! Will try with search interface. ListView is already built... But do I have to add text watcher (listed in first tutorial)... _private TextWatcher filterTextWatcher = new TextWatcher()_ – M.V. Mar 28 '11 at 12:52
  • @M.V. TextWatcher is important to track what the user is writing down. – Edward Quixote Aug 18 '17 at 11:17