Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想更改以将背景颜色更改为纯色背景,并且不会像实现的那样褪色。我在代码中找不到褪色发生的地方。
有人可以帮忙吗?
谢谢,伊兰
这可能为时已晚,但也许其他人可能会偶然发现它。在styles.xml中SampleActivity,有一个名为 sv_backgroundColor 的样式。使用它,“#”之后的前两个字符是 alpha 值,接下来的六个是十六进制颜色代码。
styles.xml
SampleActivity
<item name="sv_backgroundColor">#3300A621</item>
或者
<item name="sv_backgroundColor">#ffxxxxxx</item>
让它不透明