<?xml version="1.0" encoding="utf-8"?>
<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">
<EditText android:id="@+id/edit_message"
android:layout_weight="1"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:hint="@string/edit_message" />
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/button_send" />
</LinearLayout>
<resources>
<string name="app_name">becreativebuddy</string>
</resources>
我在第 18 行(共 20 行)中出现错误。我正在逐字学习教程,因为我对此很陌生。我想养成本地化的习惯,但令人沮丧,因为当我没有它时,它编译并运行得很好。如果这是一个简单的错误,我深表歉意,但我没有在网上找到任何对我有帮助的东西。如前所述,我是新手,所以尽量保持简单。