【问题标题】:No resource found that matches the given name: attr 'windowBackground' in android找不到与给定名称匹配的资源:android 中的 attr 'windowBackground'
【发布时间】:2017-09-24 12:20:38
【问题描述】:

我正在尝试将图像 b.jpg 设置为整个应用程序中的背景墙纸。我做了如下

<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
    <!-- Customize your theme here. -->
    <item name="colorPrimary">@color/colorPrimary</item>
    <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
    <item name="colorAccent">@color/colorAccent</item>
    <item name="windowBackground">@drawable/b</item>
</style>

我收到如下所示的错误.. Click here to see the image

【问题讨论】:

    标签: android performance android-layout android-fragments


    【解决方案1】:

    使用这个:

    <item name="android:windowBackground">@drawable/b</item>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2015-05-19
      • 2017-10-13
      • 2018-03-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多