views:

243

answers:

2

I am creating a layout with a ListView and at the very top of the list there is this weird black line that I can't seem to figure out how to get rid of! It's part of the ListView because it moves up and down as I size the ListView. Has anyone ran into this before?

alt text

I couldn't get DDMS to take a screen capture for some reason so I took a picture of the screen with my G1, so please forgive the quality! As you can see the line is there at the top of the fade out in the list. alt text

A: 

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"
Manfred Moser
A: 

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>

    <style name="Theme" parent="android:Theme">
        <item name="android:windowNoTitle">true</item>
        <item name="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.

William Remacle