0

我在以下代码中收到无效令牌错误:

<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"
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=".MainActivity">
<TextView
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="@string/hello_world"/>

在 Eclipse IDE 上,错误红色“x”位于 android:paddingLeft 行。非常感谢任何见解!

4

1 回答 1

0

我刚刚删除了该项目,因为它是一个测试。不过,在那之前,我一直在搞乱 xml 的 TextView。感谢你们的帮助!

于 2013-08-09T12:31:50.310 回答