2

我完全不知道我做错了什么我得到了两个错误 - 文档元素之后的垃圾和根之后的标记必须正确形成,有什么想法吗?

<LinearLayout 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:orientation="horizontal"
    tools:context=".MainActivity" />

<EditText  android:id="@+id/edit_message"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:hint="@string/edit_message"  />
</EditText>
<button android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="@string/button_send" />

</LinearLayout>
4

1 回答 1

0

我看到你至少有两个错误。

  1. LinearLayout不应/在顶部声明的末尾有 a。这可能会导致您的 XML 错误。
  2. button应该大写。
于 2013-01-26T03:19:19.630 回答