user3579994
user3579994

Reputation: 141

android- How to use getFilter for CursorAdapter

I've a custom listView and a CursorAdapter and search field on optionMenu . I used to have an arrayAdapter and it worked fine but I can't do the same with CursorAdapter .

Could you help me to filter items from cursorAdapter ?

thanks

Upvotes: 0

Views: 2552

Answers (1)

Shahan M
Shahan M

Reputation: 543

You have to use CursorAdapter.setFilterQueryProvider. For more details please refer to the answer to the post below. For your ease here is a link to the blog.

Answered Question from another post

Upvotes: 2

Related Questions