Wednesday, August 10, 2011

[android-developers] Divider below ListView header

ListView lets you add a header using addHeaderView(). Is there any way
to make the ListView draw a divider between the header and the rest of
the list, i.e. the same divider that is drawn between individual list
items?

I've tried calling setHeaderDividersEnabled(true), but that doesn't
help. I've also found a work-around to draw the divider myself as part
of the header, but I hope there is a better way out there.

--
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

No comments:

Post a Comment