Subject says it all. I have seen examples implementing a custom Filter. The Android developer docs talk about implementing a Filterable interface. Does anyone have any advic
There are two possible ways of Resolving this
1. Use your own Filtering Algorithm to filter the adapter(As said by others). 2. The second and much simpler method is to override the tostring method in the Custom RowItem class you might have defined
@Override
public String toString() {
return name + "\n" + description;
}
where name and description are the possible text you have stored in the row items on which you want filtering
and use the adapter.getFilter().filter(s); as such you were using it will work now because your adapter now returns a valid string to filter