English 中文(简体)
安德列斯:Flicker号意见 如何消除这一障碍?
原标题:Android: ListView Flicker effect. Any hints on how to get rid of this?
  • 时间:2009-10-07 18:32:35
  •  标签:

出于某种原因,每当我通过我的项目清单提出时,我的清单中的背景就消失了,重新出现,产生了我真心想要的“flicker”效应。 我在以下网址尝试了这一建议:。 如何使名单在安乐文中透明? 但它出于某种原因没有工作。 任何建议?

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/screenLayout"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:background="@drawable/background"
    >
        <TextView
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:gravity="center"
            android:background="@color/title_background"
            android:text="@string/whatsnew_title"
            >
        </TextView>
        <ListView
            android:id="@android:id/list"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            >
        </ListView>     
</LinearLayout>
最佳回答

页: 1 它是拟议办法的最重要部分。 我刚刚尝试过你的法典(显然不是精确的复制,因为你再次提到具体项目的资源),似乎正在工作。

的这个职位应当符合您的利益。

问题回答

也可从Java(代码)一侧实现:listView.setCacheColorHint(Color.TRANSPARENT);

查阅<代码><的您主题xml;项目名称=“android:windowBackground”>@null</item>。 如果是的话——删除。 我认为,民众资源之一就把这一界限作为例子(我是如何去做的)。





相关问题
热门标签