0

在 Android 项目中,我的 XML 文档总是收到相同的错误消息。

我的代码:(错误发生在最后一行)

<TableLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context = ".SelectActivity" >
4

1 回答 1

0

You don't have closing tag for your TableLayout which is

</TableLayout>

Also this @dimen is this a resource or an id?

android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
于 2013-02-21T20:40:24.747 回答