2012-04-26 106 views
0

我知道這可能是由拼寫和語法錯誤引起的,我已經仔細檢查過這部分代碼。我的主要目的是將圖像'外星人'放在畫布上的特定位置。這個錯誤來自這個代碼錯誤:解析XML時出錯:未綁定前綴

<?xml version="1.0" encoding="utf-8"?> 
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 
    android:orientation="vertical" 
    android:layout_width="fill_parent" 
    android:layout_height="fill_parent" 
    android:background="@drawable/spaceinvaders" 
    > 

<ImageView 
android:id="@+id/alien" 
android:src="@drawable/alien" 
android:layout_width="wrap_content" 
android:layout_height="wrap_content" 
android:layout_gravity="center_horizontal" 
andriod:layout_marginTop="120dip"/> 


</LinearLayout> 
+0

什麼是確切的錯誤?發表它。 – botbot 2012-04-26 19:10:38

回答

1

我相信這是由你的最後一行造成的。

的Andriod:layout_marginTop = 「120dip」/>

+0

是的,這是什麼問題感謝,我怎麼能移動圖像沒有得到相同的錯誤的任何想法? – kevv44 2012-04-26 19:20:23

+0

可以肯定的是,你注意到了錯字嗎? (切換的I和O)。當這個錯字被修復時,你是否仍然有問題? – MannyCalavera 2012-04-26 19:34:49

相關問題