Android ADT(4.3)XML EDitor:解析XML时出错:格式不正确(无效令牌)



实际上,我不明白编辑器为什么在我的main_activity.xml文件中为

 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent" >
    <FrameLayout
        android:id="@+id/parentFrameLayout"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent" >
        <ImageView
            android:id="@+id/backgroundImageView"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:scaleType="fitXY"
            android:src="@drawable/background" >
        </ImageView>
    </FrameLayout>
</RelativeLayout>

在文件末尾添加换行符(\n)。

最新更新