我想更改我的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
它不是重複的。我的標題被寫入改變文本樣式/大小/顏色 –