更改 Android 中的设置项描述文本颜色?
我使用的是三星 Vibrant,三星在 TouchWiz 皮肤上添加的烦人的部分之一是将“设置”菜单项描述文本的颜色从白色 (AOSP) 更改为浅蓝色。
只要皮肤是蓝色主题的,这看起来就不错,但大多数 ROM 似乎都倾向于姜饼克隆……绿色看起来不太好。
如何将设置描述字体颜色更改回白色,甚至是实际 Android 2.3 中的橙色?颜色属性位于哪个 xml 文件中?
它似乎也传播到您安装的所有应用程序......蓝色文本。
I use a Samsung Vibrant, and one of the annoying bits that Samsung tossed on their TouchWiz skin was changing the color of the Settings menu item description text from white (AOSP) to light blue.
This looks okay as long as the skin is bluey-themed, but most ROMs seem to be leaning toward Gingerbread clones... doesn't look good with the green.
How can I change that settings description font color back to white, or even the orange it is in actual Android 2.3? Which xml file is the color property located in?
It seems to also spread to all apps you install, too... the blue text.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
对于您的应用程序,您需要添加如下新样式:
在您的清单文件中,在您的首选项活动中添加此行以应用您的样式:
您还可以在此处检查默认样式:https://android.googlesource.com/platform/frameworks/base/+/master/core/res/res/values/styles .xml
如果您指的是在系统范围内执行此操作,那么您可能需要找到此 styles.xml 文件并且还需要拥有 root 权限。
For your app you will need to add a new style like this:
And in your manifest file, in your preference activity add this line to apply your style:
You could also check the default styles here: https://android.googlesource.com/platform/frameworks/base/+/master/core/res/res/values/styles.xml
If you are referring to do it system wide, then you will probably need to find this styles.xml file and also need to have root.