2014-06-07 125 views
2

我试图在设备上使用Navigation Bar透明。但是,SDK没有找到资源。找不到与给定名称相匹配的资源:attr'android:windowTranslucentNavigation'

这里是res/values-v19/styles.xml文件:

<resources xmlns:android="http://schemas.android.com/apk/res/android"> 

    <style name="Theme.Myactionbar" parent="@android:style/Theme.Holo.Light"> 
     <item name="android:windowTranslucentStatus">true</item> 
     <item name="android:windowTranslucentNavigation">true</item> 
    </style> 

</resources> 

下面是安装的软件包的图像:

enter image description here

在清单中,我有:

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

我也有试图清理和建设几个项目次,但没有任何反应。

感谢

回答

6

你也改变了项目的构建目标到Android 4.4.2?

project.properties文件,或者:

enter image description here

+1

我很奇怪,为什么我仍然有错误时targetSdkVersion我设置为21。 – Hong

相关问题