如何设置一个Android滚动型衰退边缘的颜色?如何设置、边缘、颜色、Android

由网友(一無所有就是拼的理由)分享简介:我有一个Android滚动型背景为白色。衰落边缘是一个白色半透明梯度。我想改变它是黑色而不是白色。我有一个白色背景,有一个默认的黑色衰落边缘的同一个项目一个ListView,但我找不到在哪里(如果任何地方)的设置。I have an Android scrollview with a white background...

我有一个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.

阅读全文

相关推荐

最新文章