如何设置一个Android滚动型衰退边缘的颜色? [英] How to set the color of an Android ScrollView fading edge?

查看:150
本文介绍了如何设置一个Android滚动型衰退边缘的颜色?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Android滚动型背景为白色。衰落边缘是一个白色半透明梯度。我想改变它是黑色而不是白色。我有一个白色背景,有一个默认的黑色衰落边缘的同一个项目一个ListView,但我找不到在哪里(如果任何地方)的设置。

I have an Android scrollview with a white background. The fading edge is a white translucent gradient. I would like to change it be black instead of white. I have a ListView in the same project with a white background that has a black fading edge by default, but I can't find where (if anywhere) that was set.

推荐答案

刚刚发现它的试验和错误。

Just found it out by trial and error.

只需设置安卓背景=@色/ yourColor<滚动型> 。这将设置阴影给定的颜色。

Simply set android:background="@color/yourColor" for the <ScrollView>. It will set the shadow to the given colour.

这篇关于如何设置一个Android滚动型衰退边缘的颜色?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆