Friday, July 2, 2010

[android-developers] Re: How to remove a HeaderView from a ListView?

Thx! sounds good! I'll than just go try to implement another method
of adding a header view :) I'll take a look at your sample!

-Moto

On Jul 2, 2:54 am, Mark Murphy <mmur...@commonsware.com> wrote:
> On Thu, Jul 1, 2010 at 11:20 PM, Moto <medicalsou...@gmail.com> wrote:
> > How can I remove the Header from a ListView?
>
> If you are using addHeaderView(), you can't. I don't even think
> calling setAdapter() again will necessarily get rid of it.
>
> So, don't use addHeaderView(). Rather, create your own adapter that
> blends your main roster of Views with your header. While my
> MergeAdapter will not handle your specific case, you can use it to see
> the concept of blending multiple row sources:
>
> http://github.com/commonsguy/cwac-merge
>
> --
> Mark Murphy (a Commons Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> Android Training...At Your Office:http://commonsware.com/training

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate