為什么輸入: android: background="@color/red" 時(shí)總是提示出錯(cuò)了,
Error:No resource found that matches the given name(at 'background' with value '@color/red'
為什么輸入: android: background="@color/red" 時(shí)總是提示出錯(cuò)了,
Error:No resource found that matches the given name(at 'background' with value '@color/red'
2014-08-31
舉報(bào)
2014-09-03
已解決,在values文件夾中創(chuàng)建colors.xml文件,在其中編輯文件如:
<color
name="blue"> #0000ff </color>
2014-09-03
在value文件夾中就沒(méi)有colors.xml文件,老師,如何編輯這個(gè)文件,可否給出相應(yīng)范例代碼
2014-09-01
確認(rèn)values文件夾下的colors.xml文件中是否已定義了red