我采取动作条使用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