我採取動作條使用XML這種風格的腳本來設置文本的顏色,而是得到錯誤,當我運行我的應用程序時沒有任何人有知道我已經失蹤錯誤檢索父的項目:無資源發現在給定名稱匹配「@android:風格/ TextAppearance.Holo.Widget.ActionBar.Title」
這是我style.xml文件
<!-- Start with the Holographic Light theme -->
<style name="Theme.IOSched" parent="android:style/Theme.Holo.Light">
<item name="android:windowBackground">@drawable/window_background</item>
<item name="android:actionBarStyle">@style/ActionBar</item>
<!-- custom attributes
<item name="textHeaderMaxLines">@integer/text_header_max_lines</item>
<item name="trackAbstractMaxLines">@integer/track_abstract_max_lines</item>-->
</style>
<style name="Theme.IOSched.Home" parent="style/Theme.IOSched">
<item name="android:windowBackground">@drawable/window_background_home</item>
<item name="android:actionBarStyle">@style/ActionBar</item>
</style>
<style name="ActionBar" parent="android:style/Widget.Holo.Light.ActionBar">
<item name="android:background">@color/actionbar_background</item>
<item name="android:textColor">@color/accent_1</item>
<item name="android:titleTextStyle">@style/ActionBarText</item>
</style>
<style name="ActionBarText" parent="@android:style/TextAppearance.Holo.Widget.ActionBar.Title"> <!-- getting here error-->
<item name="android:textColor">@color/accent_1</item>
<item name="android:textStyle">bold</item>
</style>
error: Error retrieving parent for item: No resource found that matches the given name '@android:style/TextAppearance.Holo.Widget.ActionBar.Title'.
您是否在Project Properties中將您的Build Target設置爲3.0? –
是的,我把目標定 – Pratik
我有這個錯誤時,不包含playServices和android:價值=「@整數/ GOOGLE_PLAY_SERVICES_VERSION」是給錯誤 – Nepster