Tuesday, November 19, 2013

[Android][XML][solved] The markup in the document following the root element must be well-formed



Reference : 

If that still can't work, check is there sth wrong  in your xml root element.
for my case, i need remove the "/" in red.

<LinearLayout 
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
android:layout_weight="1" />

<TextView
android:id="@+id/imageTitle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/test_image_title"/>

<TextView
android:id="@+id/imageDate"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/test_image_date"/>

<ImageView
android:id="@+id/imageDisplay"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/test_image"
android:contentDescription="@string/test_image_d"
android:adjustViewBounds="true"/>

<TextView
android:id="@+id/imageDescription"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/test_image_description"/>
   
</LinearLayout>


Post this post can be your reference.

No comments :

Post a Comment