android XML中的令牌无效
刚刚开始android开发,并尝试在这里创建UI。。但是获取以下内容:/res/layout/main.xml:13:错误:解析xml时出错:格式不正确(无效令牌) 有什么想法吗android XML中的令牌无效,android,xml,Android,Xml,刚刚开始android开发,并尝试在这里创建UI。。但是获取以下内容:/res/layout/main.xml:13:错误:解析xml时出错:格式不正确(无效令牌) 有什么想法吗 <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent"
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
>
<TableLayout android:id="@+id/entryBar"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:stretchColumns="1"
>
<TableRow
<EditText android:id="@+id/taskEntry" />
</TableRow>
<TableRow
<Button android:id="@+id/add"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Add"
/>
</TableRow>
</TableLayout>
<ListView android:id="@+id/tasks"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_above="@id/entryBar"
/>
</RelativeLayout>
您的TableRow
项目没有正确结束,请尝试
<TableRow>
<EditText android:id="@+id/taskEntry" />
</TableRow>
<TableRow>
<Button android:id="@+id/add"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Add"
/>
</TableRow>
第一次之后,您错过了一个>