【发布时间】:2016-08-31 18:03:03
【问题描述】:
这是我的 XML 代码,请告诉我哪里做错了,请告诉我应该如何消除这个错误?
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<Button
android:id="@+id/button1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentRight="true"
android:layout_alignParentTop="true"
android:text="@string/dob"
<TextView **error is coming here in text view**
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="23dp"
android:text="@string/cd" />
<TextView
android:id="@+id/textView2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="18dp"
android:text="@string/bd" />
<TextView
android:id="@+id/textView3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:text="@string/Result" />
</RelativeLayout>
请告诉我哪里做错了,请告诉我应该如何消除这个错误?
【问题讨论】:
-
您的
Button元素没有被关闭。 -
天哪,原来是这么简单的错误!!
标签: android eclipse android-layout xml-parsing