2013-04-07 41 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