Android 错误:分析XML时出错:未绑定前缀
我理解这可能是由拼写和语法错误引起的,我已经仔细检查了代码的这一部分。我的主要任务是将“外星人”图像放在画布上的特定位置。错误来自此代码Android 错误:分析XML时出错:未绑定前缀,android,Android,我理解这可能是由拼写和语法错误引起的,我已经仔细检查了代码的这一部分。我的主要任务是将“外星人”图像放在画布上的特定位置。错误来自此代码 <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width=
<?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>
我相信这是你最后一句话引起的
andriod:layout_marginTop=“120dip”/>确切的错误是什么?发帖。是的,这就是问题所在。谢谢,你知道我如何移动图像而不会出现同样的错误吗?只是为了确定,你注意到了打字错误,对吗?(切换的I和O)。当这个打字错误被纠正后,你还有问题吗?