我想改变我的行动吧,而不是白色文字的颜色我想#59380d,所以我说的颜色,这样的color.xml:更改Android操作栏文本颜色
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:color="#59380d"/>
</selector>
,然后我打电话到我styles.xml这样的:
<resources>
<style name="AppBaseTheme" parent="android:Theme.Light">
<item name="android:textColor">@color/header</item>
</style>
<!-- Application theme. -->
<style name="AppTheme" parent="AppBaseTheme">
<item name="android:textColor">@color/header</item>
</style>
</resources>
,并最终在我的AndroidManifest我设置这样的aplication:
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:name="com.app.activities.MyAp"
android:theme="@style/AppTheme" >
...
</aplication>
但行动酒吧的文字仍然是白色的。你需要什么,我做错了
你可以检查[this](http://stackoverflow.com/questions/28888852/android-toolbar-text-color)如果你正在使用工具栏,两个答案都是excel借,或谷歌更多,如果不是 – Elltz
看看[这个](http://stackoverflow.com/questions/8607707/how-to-set-a-custom-font-in-the-actionbar-title),它解释了如何在操作栏文本上设置自定义字体和颜色。它不是那么简单,你会想.. – JPS
好吧,我解决了这个问题,谢谢@Elltz链接帮助我很多。我将- @ color/header
添加到styles.xml中并且它可以工作 –
jordiPons