I set it in activity's OnCreate method with
myAdapter = new myBaseAdapter(this);
lv.setAdapter(myAdapter);
and myAdapter is declared as
private myBaseAdapter myAdapter;
and visible in all activity methods.
Then (maybe important)
I have text watcher, which onTextChanged execute:
final BaseAdapter adapter = (BaseAdapter)
lv.getAdapter();
((Filterable) adapter).getFilter().filter(s); //
s is a search string
myBaseAdapter implements Filterable which execute
notifyDataSetChanged() when new filter is applied.
As I said before, the code doesn't produce any error if I comment 2
lines where I add header view.
Thanks,
On Dec 10, 11:42 am, TreKing <[email protected]> wrote:
> On Fri, Dec 10, 2010 at 10:37 AM, bobetko <[email protected]> wrote:
> > Any suggestions?
>
> When do you set your adapter?
>
> ---------------------------------------------------------------------------
> ----------------------
> TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
> transit tracking app for Android-powered devices
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en