android - 检索项目 : No resource found that matches the given name '@android:style/TextAppearance.Holo.Widget.ActionBar.Title' 的父项时出错

标签 android coding-style

我正在实现 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'.

最佳答案

TextAppearance.Holo.Widget.ActionBar.Title 似乎已添加到 API 级别 13。确保您的构建目标设置为 13,而不仅仅是 11。

关于android - 检索项目 : No resource found that matches the given name '@android:style/TextAppearance.Holo.Widget.ActionBar.Title' 的父项时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8590521/

相关文章:

java - 只有 1 个 onClickListener 适用于 google map Activity 中的标记

haskell - Haskell 中的无积分

C#注释技术/注释重用

javascript - 在 javascript 的鼠标悬停/鼠标移开与 css 的悬停上悬停在 div 标签上时,其他一些元素发生了变化

c++ - 绑定(bind)对 object-or-dummy 的引用的样式

c++11 - C++ 库 : . hpp + .inl(单独的定义和声明)vs 仅 .hpp(类内主体代码)

amazon - 我想为Kindle Fire开发,但要到11月才会发布。同时,我应该为开发设备使用什么?

java -/sys/上怎么写?安卓

android - android资源中的词典

java - fragment 内旋转器基本适配器出现 NullPointerException 错误