I had the same problem:
http://groups.google.com/group/android-developers/browse_thread/thread/4883b7021b1a7724/f120bf311c5b81af

I just tried to answer that thread but it isn't possible anymore it
seems. Therefore, below what I typed in as the answer:

---------------------------------------------------------------------

What I think this solved it (was a while ago): indeed using
addHeaderView(v, null, false). As in:
http://developer.android.com/reference/android/widget/ListView.html#addHeaderView(android.view.View,
java.lang.Object, boolean)

For me 'v' is the searchbox (input boxes + search button) inflated in
the code and set as headerview.

Note the 3rd parameter, that is the one that did it (when I look at my
comments in the code).
I also call setListAdapter() after adding the header, as mentioned in
the docs.

Hope this helps.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to