切换滚动的颜色,滚动型的机器人机器人、颜色

由网友(去你妹的虚情假意)分享简介:我有一个小问题,我的滚动视图。每当滚动视图已在滚动,它显示了一个黄色的渐变(在我的设备,它可以改变其他设备)在滚动视图的边缘。它可以通过在安卓2.3及以上设定的属性如下被淘汰。I have a small problem with my scroll view. Whenever a scroll view has...

我有一个小问题,我的滚动视图。每当滚动视图已在滚动,它显示了一个黄色的渐变(在我的设备,它可以改变其他设备)在滚动视图的边缘。它可以通过在安卓2.3及以上设定的属性如下被淘汰。

I have a small problem with my scroll view. Whenever a scroll view has over scrolled, it shows a yellow gradient (in my device, it may vary for other devices) at edges of scroll view. It can be eliminated by setting attribute as below in android 2.3 and above.

android:overScrollMode="never"

现在我想改变默认的颜色为其他。如何实现这一点。

Now i want to change the default color to some other. How to achieve this.

请帮我对此。任何帮助将AP preciated。

Please help me regarding this. Any help will be appreciated.

推荐答案

您应该使用下面的属性在你的的ListView

You should use the following attributes on your ListView :

<ListView
      ...
      android:overScrollHeader="@drawable/header"
      android:overScrollFooter="@drawable/footer"/>

使用您也可以将它们编程setOverscrollFooter(Drawable D) 和setOverscrollHeader(Drawable D) 。

阅读全文

相关推荐

最新文章