我知道這可能是由拼寫和語法錯誤引起的,我已經仔細檢查過這部分代碼。我的主要目的是將圖像'外星人'放在畫布上的特定位置。這個錯誤來自這個代碼錯誤:解析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>
什麼是確切的錯誤?發表它。 – botbot 2012-04-26 19:10:38