由网友(打小就帅)分享简介:我想改变所有颜色的文本在我的应用程序。所以我写了这个code和设置我在清单中的主题:I would like to change all color texts in my application.So I wrote this code and I set my theme in the manifest:<...
我想改变所有颜色的文本在我的应用程序。 所以我写了这个code和设置我在清单中的主题:
I would like to change all color texts in my application. So I wrote this code and I set my theme in the manifest:
<style name="AppTheme" parent="android:Theme.Holo.Light.DarkActionBar">
<item name="android:textColor">@color/white</item>
</style>
但只有TextView的文字为白色。我想按钮和的EditText是在白色的了。
But only TextView texts are in white. I would like Button and EditText to be in white too.
谁能帮助我?谢谢你在前进。
Can anyone help me? Thank you in advance.
推荐答案
你的主题:
<style name="AppTheme" parent="android:Theme.Holo.Light.DarkActionBar">
<item name="android:textColor">@color/white</item>
<item name="android:buttonStyle">@style/ButtonTheme</item>
</style>
这是你可以设置你的按钮主题:
And this is how you can set your Button Theme:
<style name="ButtonTheme" parent="android:style/Widget.Button">
<item name="android:textColor">@color/white</item>
</style>
和也与EditTexts等做到这一点。
And also do this with EditTexts etc.
相关推荐
最新文章