对不起,我编码一个简单的android计算器,然后它显示XML错误,我已经改变了一些代码,但它不工作。为什么会这样?在我的简单的Android计算器中有一个错误
这是主要的代码
<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">
然后我得到一个错误的警告:
它说
在该行发现多个注释:
错误:错误解析XML:通过任一属性规格, “>” 或 “/>” 没有很好地形成(标记无效)
单元类型 “的LinearLayout” 必须遵循的。
感谢
paste th e xml here – jeet
你应该粘贴'xml',图片不清晰 – Sieryuu
@ jeet对不起,我的电脑中的图片非常大 – Winnie