Excuse me , I encode a simple android calculator,then it show XML wrong,I have change some code but it doesn’t work.why like this?
this is the main code
<LinearLayout xmlsn:android ="http://schemas.android.com/apk/res/android"
xmlns:tools ="http://schemas.android.com/tools"
android:orientation="vertical"
android:layou_width="fill_parent"
android:layou_height="fill_parent"
android:paddingTop="5dip">
<TextView
android:id="@+id/tv"
android:layout_width="fill_parent"
android:layout_height="40dip"
android:layout_marginLeft="5dip"
andorid:layout_marginRight="5dip"
android:background="#FFFFFF"
android:gravity="center_verticallright"
android:textColor="#ff0000"
android:textSize="30dip">
</TextView>
<LinearLayout
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:paddingTop="5dip">
then I get a error warning :

it’s says
Multiple annotations found at this line:
-
error: Error parsing XML: not well-formed (invalid token)
-
Element type “LinearLayout” must be followed by either attribute specifications, “>”
or “/>”.
thanks
Well. Are you sure, you’ve closed your
LinearLayouttag?The editor cannot find the tag
</LinearLayout>It should probably be in the very bottom of your layout file.