【发布时间】:2013-09-23 05:33:57
【问题描述】:
我在 res/values/themes.xml 中声明了一个主题:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="CustomActionBarTheme"
parent="@style/Theme.Holo.Light.DarkActionBar">
<item name="android:actionBarStyle">@style/MyActionBar</item>
</style>
</resources>
然后我通过在清单中添加以下行来将主题应用到我的一项活动中:
android:theme="@style/CustomActionBarTheme"
然后我在 Themes.xml 中得到一个错误,说:“错误:检索项目的父项时出错:找不到与给定名称匹配的资源 '@style/ Theme.Holo.Light.DarkActionBar'。”
清单中的其他信息:
android:minSdkVersion="13"
android:targetSdkVersion="18"
我确实清理了项目。 可能是什么问题?
【问题讨论】: