Weird Black Line On Top Of List View
Solution 1:
The problem is not the divider.
I was also looking for a solution to this and I found one :
You can do your own theme with this
<?xml version="1.0" encoding="utf-8"?><resources><stylename="Theme"parent="android:Theme"><itemname="android:windowNoTitle">true</item><itemname="android:windowContentOverlay">@null</item></style></resources>And setting the theme to your manifest xml file and it works.
The windowContentOverlay to null fix the problem.
Solution 2:
if you specify attribute dividerHeight in ListView
<ListView
android:dividerHeight="0.0px"
android:id="@+id/listview"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
in layout xml it is not working for Android 2.2 for some reason Google groups say that it will be fixed in next cupcake
function ListView.setDividerHeight(0) works fine
Solution 3:
It is probably coming from the divider of ListView. Check out and play with setting
setDividerHeight(0)
as well as check header/footer dividers are off or use
setFooterDividersEnabled(false)
You can also set these in xml of course. e.g.
android:dividerHeight="0"
Post a Comment for "Weird Black Line On Top Of List View"