Top-most and Bottom-most Horizontal Divider does not show up in ListView

前端 未结 5 651
情话喂你
情话喂你 2021-02-08 21:49

I am using a ListView. But the top-most and bottom-most horizontal bar does not show up. Why? I am using this:

android:divider=\"@android:drawable/divider_horiz         


        
5条回答
  •  太阳男子
    2021-02-08 22:07

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

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

提交回复
热议问题