更改preference标题的文本颜色 [英] Changing the text color of preference header
问题描述
我的总主题是使用 Theme.AppCompat.Light
。当选择左侧的项目,文字颜色变成白色,这是很难看到对浅色背景。我想prevent这种颜色的变化,并保持它为黑色。任何人都知道如何做到这一点?
my overall theme is using the Theme.AppCompat.Light
. When an item on the left side is selected, the text color turns WHITE, which is hard to see against the light background. I want to prevent this color change and keep it as black. Anyone know how to do this?
我试图改变listSelector造型,但只有改变背景颜色。我需要改变前景文本颜色。谢谢你。
I tried changing listSelector styling, but that only changes the background color. I need to change the foreground text color. Thanks.
推荐答案
&LT;项目name=\"android:activatedBackgroundIndicator\">@drawable/activated_background_settings</item>$c$c>
这应该解决的问题。它引用抽拉是选择在这种情况下
That should solve the problem. The drawable that it is referencing is a selector in this case
这篇关于更改preference标题的文本颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!