我想更改我的应用程序中的所有颜色文本.所以我编写了这段代码,并在清单中设置了我的主题:
<style name="AppTheme" parent="android:Theme.Holo.Light.DarkActionBar">
<item name="android:textColor">@color/white</item>
</style>
Run Code Online (Sandbox Code Playgroud)
但只有TextView文本为白色.我希望Button和EditText也是白色的.
谁能帮我?先感谢您.
android colors android-theme android-edittext android-button
随着Theme.Holo.Light作为基本主题,设计师注意到,默认的文本颜色不是黑色,而是深灰色(#505050).我们想把它改成黑色.

寻找一种简单的方法将应用程序中的默认值更改为黑色,我发现这有效:
<resources>
<style name="MyAppTheme" parent="android:Theme.Holo.Light">
<item name="android:textColor">@android:color/black</item>
</style>
</resources>
Run Code Online (Sandbox Code Playgroud)
现在,问题是,这也改变了Action Bar溢出菜单中禁用项目的颜色.如何在仍然禁用菜单项看起来"禁用"时覆盖默认文本颜色?
菜单应如下所示,但android:textColor如上所述,它会将所有项目更改为黑色.

我与实验textColorPrimaryInverse,textColorPrimaryDisableOnly,textColorPrimaryInverseDisableOnly和disabledAlpha,但这些似乎并没有影响到溢出菜单.