custom Filter Android won't show me the results
Posted
by TiGer
on Stack Overflow
See other posts from Stack Overflow
or by TiGer
Published on 2010-06-07T14:55:33Z
Indexed on
2010/06/07
21:32 UTC
Read the original article
Hit count: 210
Hi, I have been implementing a class which class extends ArrayAdapter and implements Filterable. The filtering part (in the performFiltering method()) seems to go ok, it fills the FilterResults object just as expected. But then I think I'm not doing it right on how to publish the results, atm I have :
protected void publishResults(CharSequence prefix, FilterResults results)
{
// NOTE: this function is *always* called from the UI thread.
subItems = (Vector)results.values;
notifyDataSetChanged();
}
But this simply won't "populate" my List with the received data. So now my question is how do I populate my List with the received results ? Do I have to do that programmatically ?
© Stack Overflow or respective owner