没有资源的发现,匹配给定的名字“@风格/ Theme.Holo.Light.DarkActionBar” [英] No resource found that matches the given name '@style/ Theme.Holo.Light.DarkActionBar'

查看:557
本文介绍了没有资源的发现,匹配给定的名字“@风格/ Theme.Holo.Light.DarkActionBar”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

平台:4.3

API等级:18

AndroidManifest.xml中:

AndroidManifest.xml:

<uses-sdk
    android:minSdkVersion="18"
    android:targetSdkVersion="18" />

值-V14 \ styles.xml:

values-v14\styles.xml:

  <resources>

<!--
    Base application theme for API 14+. This theme completely replaces
    AppBaseTheme from BOTH res/values/styles.xml and
    res/values-v11/styles.xml on API 14+ devices.
-->
<style name="AppBaseTheme" parent="android:Theme.Holo.Light">
</style>

 <style name="CustomActionBarTheme"
       parent="@style/Theme.Holo.Light.DarkActionBar">
    <item name="android:actionBarStyle">@style/MyActionBar</item>
</style>

<style name="MyActionBar"
       parent="@style/Widget.Holo.Light.ActionBar.Solid.Inverse">
    <item name="android:background">@drawable/actionbar_background</item>
</style>

我是一个机器人newbie.Thanks非常感谢!

I am an android newbie.Thanks very much!

推荐答案

做到这一点:

"android:style/Theme.Holo.Light.DarkActionBar"

您错过了机器人样式之前的关键字。这表示它是一个内置式的为Android。

You missed the android keyword before style. This denotes that it is an inbuilt style for Android.

这篇关于没有资源的发现,匹配给定的名字“@风格/ Theme.Holo.Light.DarkActionBar”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆