2013-04-07 40 views
1

我想为我的android项目添加背景。继承人的代码。android bg概要

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 
    android:orientation="vertical" 
    android:layout_width="match_parent" 
    android:layout_height="match_parent" 
    android:backround="@drawable/awesome_face"> 

</RelativeLayout> 

我拼写出一切正确,但当我进入我的图形布局后保存和没有任何显示。此外后我打扫项目我现在对

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 

一个错误,说任何人有想法“发现在包‘机器人’属性背景没有资源标识符”?

+2

背景与布局定义一个“G”。 – ChristopheCVB 2013-04-07 22:32:34

+1

而RelativeLayout没有属性'orientation' – ChristopheCVB 2013-04-07 22:35:57

回答

0

就像ChristopheCVB说,你的研究背景标记缺少G.

android:backGround="@drawable/awesome_face"> 
+1

请注意,大写是强调(我认为),G应该在您的清单中小写。 – 2013-04-07 22:38:10

+0

哇,一个白痴。我仍然习惯于英语。我的家庭语言是瑞典语 – 2013-04-07 23:19:06