奇怪的黑线的列表视图顶部 [英] Weird black line on top of list view

查看:110
本文介绍了奇怪的黑线的列表视图顶部的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创造一个布局的的ListView 键,在列表的最上方有这个奇怪的黑线,我似乎无法弄清楚如何获得干掉!这是的ListView 的一部分,因为它的动作向上和向下,我大小的ListView 。有没有人碰到过?

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?

我不能让DDMS采取屏幕捕获由于某种原因,所以我采取了屏幕的图片与我的G1,所以请原谅的质量!正如你所看到的行是在有褪色的顶出在列表中。

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.

推荐答案

问题不在于分频器。

我也一直在寻找一个解决方案,这一点,我发现之一:

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>

和设置主题,以您的清单XML文件,它的工作原理。

And setting the theme to your manifest xml file and it works.

在windowContentOverlay为null解决问题。

The windowContentOverlay to null fix the problem.

这篇关于奇怪的黑线的列表视图顶部的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆