2013-10-08 48 views
0

我只是andriod應用程序開發的一員。我想用下面的代碼創建線性佈局可編輯的文本區域:錯誤:在此行發現多個註釋: - 錯誤:解析XML時出錯:未綁定前綴 - 屬性缺少Android名稱空間前綴

<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 andriod:id="@+id/edit_message" 
    andriod:layout_width="wrap_content"  
    android:layout_height="wrap_content" 
     andriod:hint="@Srting/edit_message"> 
    </EditText>   
    </LinearLayout> 

但保存XML代碼時,它提供了錯誤。

回答

0

<EditText andriod:id="@+id/edit_message" andriod:layout_width="wrap_content"
android:layout_height="wrap_content" andriod:hint="@Srting/edit_message"> </EditText>

Srting應該是字符串

相關問題