<分区>
我在 Android Studio 中编辑我的 fragment_main.xml,我收到了这个错误:
多个根标签
这里有问题的代码块是:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal" android:layout_width="match_parent"
android:layout_height="match_parent">
</LinearLayout>
<EditText <!--Error here in the bracket-->
android:id="@+id/edit_message"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:hint="@string/edit_message" />
<Button <!--Error here in the bracket-->
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/button_send"/>
我在 EditText 和 Button
之前的括号中收到错误