android - 找不到与给定名称匹配的资源 '@style/Theme.Holo.Light.DarkActionBar'

标签 android

平台:4.3

API 级别:18

AndroidManifest.xml:

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

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>

我是安卓新手。非常感谢!

最佳答案

这样做:

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

您在样式之前错过了 android 关键字。这表示它是 Android 的内置样式。

关于android - 找不到与给定名称匹配的资源 '@style/Theme.Holo.Light.DarkActionBar',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18370816/

相关文章:

android - 使用 phonegap 并在本地运行时出现 ajax 导航错误

Android NDK 应用加载库失败

java - 错误 :Execution failed for task ':app:dexDebug' . .. 使用 android studio

java - 3 Android Threads,如何构造

android - 通过 gmail 发送电子邮件

android - 如何在eclipse中导入com.android.support :design:23. 0.1

android - Android中如何设置第一个Seekbar进程值就是给第二个Seekbar赋初值?

java - 防止键盘显示字符气泡

Android SQlite 3 执行命令

android - 我的应用程序不支持 nexus 7