Bind quick search to a Listview
How can we bind a quick search to ListView? I mean when the search button on phone is pressed while in the ListView it should search ListView item开发者_StackOverflow社区s.
Search Framework doesn't work that way.
But it's not that complicated to build what you want. When you will have put everything in place to receive the query from the seach framework, then you could use it to build a new adapter for you listview, and pass it to the list view.
With CursorAdapter filtering can be achieved very easily in SQL.
Good reading, Stéphane
you should walk through this Searchable Dictionary
精彩评论