如何在滚动(Android应用程序)中禁用蓝色阴影。

时间:2012-07-24 08:22:04

标签: android shadow

在滚动

时,我尝试过以下方法来禁用蓝色阴影

所有这些都不起作用:

android:fadingEdge="none"
android:background="@null"
android:cacheColorHint="@null"

4 个答案:

答案 0 :(得分:18)

在XML ScrollView中使用此功能:

android:overScrollMode="never"

您可以设置为“always”,“never”或“ifContentScrolls”。

答案 1 :(得分:1)

我怀疑@null与没有任何东西相同。尝试将值设置为完全透明:像这样:

android:background="#00000000"
android:cacheColorHint="#00000000"

答案 2 :(得分:0)

使用ListView的以下属性来停止滚动阴影

android:scrollingCache="false"

android:fadingEdge="none"用于在滚动时停止黑色背景

答案 3 :(得分:0)

尝试使用如下

android:cacheColorHint="@android:color/transparent"