背景色の設定を行いたいのですが
Windowbackgroundを入れた途端にエラーが出てしまいます。
他のカラーはエラーなく変更できます。
color.xmlとstyle.xmlを使用して
変更したいと考えております。
ご存知の方、よろしくおねがいいたします。
エラー内容
error: style attribute 'attr/colorWindowBackground (aka jp.aftech.myapplication:attr/colorWindowBackground)' not found.
Message{kind=ERROR, text=error: style attribute 'attr/colorWindowBackground (aka jp.aftech.myapplication:attr/colorWindowBackground)' not found., sources=[/Users/shoichi/.gradle/caches/transforms-1/files-1.1/appcompat-v7-27.1.1.aar/2d3e2ed35fddb328f4a6d0df363c67ad/res/values/values.xml], original message=, tool name=Optional.of(AAPT)}
google日本語翻訳:【エラー:スタイル属性 'attr / colorWindowBackground(別名jp.aftech.myapplication:attr / colorWindowBackground)'が見つかりません。
メッセージ= kindエラー、text =エラー:スタイル属性 'attr / colorWindowBackground(別名jp.aftech.myapplication:attr / colorWindowBackground)'が見つかりません。、sources = [/ Users / shoichi / .gradle / caches / transforms-1 /ファイル-0.1 / appcompat-v7-27.1.1.aar / 2d3e2ed35fddb328f4a6d0df363c67ad / res / values / values.xml]、元のメッセージ=、ツール名=オプション.of(AAPT)}】
java
1colors.xml 2 3<?xml version="1.0" encoding="utf-8"?> 4<resources> 5 <color name="colorWindowBackground">#F4EDE6</color> 6 <color name="colorPrimary">#89C997</color> 7 <color name="colorPrimaryDark">#89C997</color> 8 <color name="colorAccent">#F9C270</color> 9</resources> 10
java
1styles.xml 2 3<resources> 4 <!-- Base application theme. --> 5 <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"> 6 <!-- Customize your theme here. --> 7 <item name="colorWindowBackground">@color/colorwindowBackground</item> 8 <item name="colorPrimary">@color/colorPrimary</item> 9 <item name="colorPrimaryDark">@color/colorPrimaryDark</item> 10 <item name="colorAccent">@color/colorAccent</item> 11 </style> 12</resources> 13 14
あなたの回答
tips
プレビュー