1
我正在學習如何使用Android開發應用程序。在使用XML在Android中構建簡單用戶界面時出現錯誤(在根元素之後的文檔中的標記必須是良構)
這是構建簡單用戶界面並面臨錯誤的第一課 根元素之後的文檔中的標記必須格式良好。
這裏是代碼
<?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:orientatio="horizonatal"
<EditText android:id="@+id/edit_message"
android:layout_widthe="wrap_content"
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>
教訓是上http://developer.android.com/training/basics/firstapp/building-ui.html
非常感謝您的更正 – ProMech