0
我有一个ListView
,点击后会启动一个新的Activity
,其中包含WebView
。 我的应用程序的背景颜色始终为黑色,但当用户点击ListView
项目时,背景颜色会变成白色一段时间,然后再次变为黑色,因为我已将#000000
设置为WebView
的背景颜色以及Activity
的消息。 有没有办法避免“白色过渡”?Android:活动转换
我有一个ListView
,点击后会启动一个新的Activity
,其中包含WebView
。 我的应用程序的背景颜色始终为黑色,但当用户点击ListView
项目时,背景颜色会变成白色一段时间,然后再次变为黑色,因为我已将#000000
设置为WebView
的背景颜色以及Activity
的消息。 有没有办法避免“白色过渡”?Android:活动转换
//为您需要设置
cacheColor透明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"
/>
是整个列表视图的背景颜色改变或单列? – Blackbelt
这篇文章可能有用:http://www.hambonious.com/2010/06/customizing-android-listview-colors.html –