出于某种原因,每当我滚动浏览我的项目列表时,我的列表视图中的背景都会消失并重新出现,从而产生我并不真正想要的“闪烁”效果。我已经尝试过以下建议:如何在 Android 中使 ListView 透明?但由于某种原因它不起作用。有什么建议么?
<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>