我正在实现ActionBar来使用xml中的这个样式脚本设置文本的颜色但是当我运行我的应用程序时间时收到错误确实有人知道我遗漏了什么
这是我的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'.
Run Code Online (Sandbox Code Playgroud) 错误:找不到与给定名称匹配的资源:attr'listViewStyle'
我从这里尝试了一切.什么都行不通.
我已经在API版本15的eclipse中导入了API演示,并且在src文件中也出现了错误,例如"导入com.example.android.apis.R无法解析"
请帮帮我.
我在values-v11/styles.xml文件中有错误
<style name="ThemeHolo" parent="android:Theme.Holo">
</style>
<!-- For API level 11 or later, the Holo theme is available and we prefer that. -->
<style name="ThemeHoloDialog" parent="android:Theme.Holo.Dialog">
</style>
<!-- For API level 11 or later, we can use the magical DialogWhenLarge theme. -->
<style name="ThemeDialogWhenLarge" parent="android:style/Theme.Holo.DialogWhenLarge">
</style>
Run Code Online (Sandbox Code Playgroud)
并且我在values/styles.xml中有一个错误"错误:检索项目的父项时出错:找不到与给定名称匹配的资源'@android:style/Theme.Holo.Light.NoActionBar'." 在以下几行中
<style name="BadTheme" parent="@android:style/Theme.Holo.Light.NoActionBar">
</style>
Run Code Online (Sandbox Code Playgroud)