我想更改我的actionbarsherlock操作栏的文本样式/字体大小/字体颜色。我会在下面显示我的尝试,但它只显示一个错误“error: Error: No resource found that matches the given name (at 'android:textColor' with value '@color/black').
”和“error: Error: No resource found that matches the given name (at 'android:textSize' with value '@dimen/20dp').
”有人可以告诉我它是如何完成的?Android ActionBarSherlock更改文本样式/大小/颜色
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="ABSTheme" parent="Theme.Sherlock.Light.ForceOverflow">
<item name="android:actionBarStyle">@style/ABSTheme.ActionBar</item>
<item name="actionBarStyle">@style/ABSTheme.ActionBar</item>
</style>
<style name="ABSTheme.ActionBar" parent="Widget.Sherlock.Light.ActionBar.Solid">
<item name="android:displayOptions">showHome|useLogo</item>
<item name="displayOptions">showHome|useLogo</item>
<item name="titleTextStyle">@style/ABSTheme.ActionBar.TextAppearance</item>
</style>
<style name="ABSTheme.ActionBar.TextAppearance" parent="@style/TextAppearance.Sherlock.Widget.ActionBar.Menu">
<item name="android:textSize">@dimen/20dp</item>
<item name="android:textColor">@color/black</item>
</style>
</resources>
试着把20dp代替“@dimen/20dp”和#000000而不是“@color/black”,看看能否工作。 – wdziemia
[ActionBar text color]的可能重复(http://stackoverflow.com/questions/5861661/actionbar-text-color) – Sam
它不是重复的。我的标题被写入改变文本样式/大小/颜色 –