I have a subclass of CursorAdapter
and I would like to filter my listview. I know that this can be accomplished with an ArrayAdapter
as stated here and that way using a custom CursorAdapter
does not work for me. I would like to do this with a custom CursorAdapter
. What should I override and can I have an example?
相关问题
- Delete Messages from a Topic in Apache Kafka
- Jackson Deserialization not calling deserialize on
- How can I create this custom Bottom Navigation on
- How to maintain order of key-value in DataFrame sa
- StackExchange API - Deserialize Date in JSON Respo
You can use CursorAdapter.setFilterQueryProvider to filter the list. I have an example on my blog -- it's in the context of an
AutoCompleteTextView
, but it should work the same way for aListView
.