No resource found that matches the given name: attr 'android:windowTranslucentNavigation'

浪尽此生 提交于 2019-12-24 02:47:05

问题


I'm trying to make the Navigation Bar transparent on devices with 4.4. However, the SDK does not find the resource.

Here is res/values-v19/styles.xml file:

<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>

Here is an image with the installed packages:

In the Manifest I have:

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

I also have tried to Clean and Build the project several times, but nothing happens.

Thanks


回答1:


Did you also change the project's build target to Android 4.4.2?

In project.properties file, or:



来源:https://stackoverflow.com/questions/24098834/no-resource-found-that-matches-the-given-name-attr-androidwindowtranslucentna

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!