Error:(10, 6) Error: The markup in the document following the root element must be well-formed
Error:(10, 6) Error: The markup in the document following the root element must be well-formed
我对那个 ScrollView 有一些问题。“必须声明元素 ScrollView,我不知道我能用那个标记做什么,有人可以帮助我吗?
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:fillViewport="true"
android:overScrollMode="never"
android:scrollbars="none" />
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="@color/background_color" />
<ImageView
android:id="@+id/close_activity"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_gravity="top|end"
android:layout_margin="4dp"
android:contentDescription="@string/closebutton"
android:padding="5dp"
android:src="@drawable/close" />
<FrameLayout
android:id="@+id/frameContainer"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_below="@+id/close_activity" />
</RelativeLayout>
</ScrollView>
不要对非空元素使用自闭合标签。
替换
android:scrollbars="none" />
和
android:scrollbars="none">
和
android:background="@color/background_color"/>
和
android:background="@color/background_color">
否则你的 XML 将不合式。
我对那个 ScrollView 有一些问题。“必须声明元素 ScrollView,我不知道我能用那个标记做什么,有人可以帮助我吗?
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:fillViewport="true"
android:overScrollMode="never"
android:scrollbars="none" />
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="@color/background_color" />
<ImageView
android:id="@+id/close_activity"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_gravity="top|end"
android:layout_margin="4dp"
android:contentDescription="@string/closebutton"
android:padding="5dp"
android:src="@drawable/close" />
<FrameLayout
android:id="@+id/frameContainer"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_below="@+id/close_activity" />
</RelativeLayout>
</ScrollView>
不要对非空元素使用自闭合标签。
替换
android:scrollbars="none" />
和
android:scrollbars="none">
和
android:background="@color/background_color"/>
和
android:background="@color/background_color">
否则你的 XML 将不合式。