gpt4 book ai didi

android - 找不到与给定名称 : attr 'windowBackground' in android 匹配的资源

转载 作者:行者123 更新时间:2023-11-30 00:20:30 25 4
gpt4 key购买 nike

我正在尝试将图像 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

最佳答案

使用这个:

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

关于android - 找不到与给定名称 : attr 'windowBackground' in android 匹配的资源,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46389972/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com