简体   繁体   中英

remove top divider in android listview

In short, I have a ListView, and set divider between items. I want to hide top and bottom dividers.

I have set

android:footerDividersEnabled="false" android:headerDividersEnabled="false"

Bottom divider is Ok, but the top still keeps the space.

尝试这个:

android:dividerHeight="0dp"
android:divider="@null"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM