Original Address http://blog.csdn.net/taxuexumei/article/details/41523419
Today's problems,,, saved to the blog, the next encounter to find a blog on the line,,,,,,
Today, when making an Android UI nesting layout, the following occurs when entering and exiting the following code:
<linearlayout
Xmlns:android= "Http://schemas.android.com/apk/res/android"
Xmlns:tools= "Http://schemas.android.com/tools"
android:orientation= "Vertical"
Android:layout_width= "Match_parent"
android:layout_height= "Match_parent"
tools:context= "${relativepackage}.${activityclass}" >
<button
Android:layout_width= "Wrap_content"
android:layout_height= "Wrap_content"
android:text= "Beijing Magic Music Technology"/>
<linearlayout
"Xmlns:android=" Http://schemas.android.com/apk/res/android ""
android:orientation= "Vertical"
android:layout_height= "Wrap_content"
Android:layout_width= "Wrap_content" >
<imageview
android:src= "@drawable/ic_launcher"
android:layout_height= "Wrap_content"
Android:layout_width= "Wrap_content"/>
<imageview
android:src= "@drawable/ic_launcher"
android:layout_height= "Wrap_content"
Android:layout_width= "Wrap_content"/>
</LinearLayout>
<tablelayout
"Xmlns:android=" Http://schemas.android.com/apk/res/android ""
android:orientation= "Vertical"
android:layout_height= "Wrap_content"
Android:layout_width= "Wrap_content" >
</TableLayout>
</LinearLayout>
"" The thing marked in this parenthesis appears red underlined.
There are the following
Unexpected namespace prefix "xmlns" found for tag linearlayout
The error, my solution is
is a namespace declaration as long as in the XML appears once, multiple occurrences of the error, it seems that the previous request.
Only the first declaration is retained, and the subsequent direct deletion is OK.
//////////////////////////
An XML script error "Unexpected namespace prefix" xmlns "found for tag linearlayout" was discovered once after the development tool was upgraded, and it was a namespace declaration as long as it appeared once in XML. , many times appear on the error, before it seems that no such requirements.
Only the first declaration is retained, and the subsequent direct deletion is OK.
Unexpected namespace prefix "xmlns" found for tag Linear Layout