2014-05-01 87 views
-2

我該如何解決這個問題?錯誤:在'android'包中找不到屬性'username'的資源標識符。我的代碼如下:錯誤:找不到包'android'中屬性'username'的資源標識符

<!-- Username Label -->   
    <TextView android:layout_width="fill_parent"       android:layout_height="wrap_content" 
android:textColor="#372c24"  
android:text="Username"/>  
<EditText android:layout_width="fill_parent"     android:layout_height="wrap_content" 
android:layout_marginTop="5dip"  
android:layout_marginBottom="20dip"  
android:singleLine="true" 
android:username="true"/> 
+3

從'EditText'刪除這個'android:username =「true」' –

+2

android中不存在屬性'android:username'。 –

回答

0

只需從你的代碼EditText刪除android:username,因爲沒有這樣的字段或在android系統屬性存在,截至目前。

這將刪除錯誤。

相關問題