开发者

Changing the Settings item description text color in Android?

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开发者_Go百科 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.


For your app you will need to add a new style like this:

<resources>
<style name="MyTheme" parent="android:Theme.Light">
    <item name="android:textColor">#0198E1</item>
    <item name="android:background">@android:color/black</item>
</style>

And in your manifest file, in your preference activity add this line to apply your style:

android:theme="@style/MyTheme"

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜