views:

188

answers:

1

Hi,

I am using a ListView. But the top-most and botom-most horizontal bar does not show up. Any idea why? I am using this:

android:divider="@android:drawable/divider_horizontal_bright"
+1  A: 

Have you looked into setting android:headerDividersEnabled and android:footerDividersEnabled on the ListView?

Also, if you look for drawDivider in platform/frameworks/base.git/core/java/android/widget/ListView.java in the Android open source repository, you'll be able to find some more clues.

Roman Nurik
Hi Roman,Thanks a lot for the response. Actually, strangely enough - now the bottom divider shows up (even after removing footerDividersEnabled). The headerDivider just does not show up. I thought there might be an overlap with the the TextView above it but the margin is a good 20dip.Any help would be appreciated. I did look at the code - it draws the divider around a certain rect but I don't know if / how that would help me.Thanks!
Sagar Hatekar