我有一个ListView,单击时会启动一个Activity包含WebView. 我的应用程序的背景颜色始终为黑色,但是当用户点击某个ListView项目时,背景颜色会暂时变为白色,然后再次变为黑色,因为我已将和 设置为 news 的#000000背景颜色。有没有办法避免“白色过渡”?WebViewActivity
1 回答
1
//为此,您需要设置
缓存颜色为透明 android:cacheColorHint="#00000000"
<ListView
android:id="@+id/my_list"
android:layout_width="match_parent"
android:layout_height="fill_parent"
android:layout_below="@id/horizontalline"
android:background="#000000"
android:cacheColorHint="#00000000"
android:layout_above="@id/AddButton"
android:drawSelectorOnTop="false"
/>
于 2012-05-18T16:03:09.947 回答