2014-06-07 124 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

相關問題