嗨我是新來的發展爲Android設置樣式,我有一個項目一個問題我的工作:Android中
使用這些風格的風格我actionbar
:
<resources>
<!-- the theme applied to the application or activity -->
<style name="CustomActionBarTheme"
parent="@style/Theme.Holo.Light.DarkActionBar">
<item name="android:actionBarStyle">@style/MyActionBar</item>
</style>
<!-- ActionBar styles -->
<style name="MyActionBar"
parent="@style/Widget.Holo.Light.ActionBar.Solid.Inverse">
<item name="android:background">@drawable/actionbar_background</item>
</style>
</resources>
我得到一個錯誤的兩種風格,他們說:
error: Error retrieving parent for item: No resource found that matches the given name '@style/
Theme.Holo.Light.DarkActionBar'.
error: Error retrieving parent for item: No resource found that matches the given name '@style/
Widget.Holo.Light.ActionBar.Solid.Inverse'.
我在一個單獨的文件XML
稱爲主題把這些。在我的風格XML
文件我有主題android:Theme.Light
如果你能給我一個建議,或者不知道什麼是錯在這裏,我將不勝感激!
大衛
改變'父=「@安卓風格/ Theme.Holo.Light.DarkActionBar」' – mt0s