2013-05-16 44 views
0

我使用的ActionBar福爾摩斯與Android版本的兼容性> = 8 並在使用它給我的代碼中的錯誤XML中使用前綴的屬性是給錯誤style.xml

error: Error: No resource found that matches the given name: attr 'titleTextStyle'. 

我的代碼是

<style name="MyTheme.ActionBarStyle" parent="@style/Widget.Sherlock.ActionBar"> 
    <item name="android:titleTextStyle">@style/MyTheme.ActionBar.TitleTextStyle</item> 
    <item name="titleTextStyle">@style/MyTheme.ActionBar.TitleTextStyle</item> 
</style> 
+0

將您的minimun sdk版本從8更改爲11並清理並運行您的項目 – Pragnani

回答

0

您必須將構建SDK更改爲至少API 11(蜂窩)。

0

我也有這個問題的實驗AndroidSherlockActionBar。每次我改變內部風格的東西,我得到這些erros。關閉樣式文件和clean -> rebuild修復我的