在創建EditView碰到的問題

This text field does not specify an inputType or a hint??

 <EditText         android:id="@+id/editText1"         android:layout_width="match_parent"         android:layout_height="wrap_content"         android:ems="10"/>
原因是由於在<EditText中少了屬性android:hint="@null"的聲明
即如下: <EditText         android:id="@+id/editText1"         android:layout_width="match_parent"         android:layout_height="wrap_content"         android:ems="10"         android:hint="@null"/ >
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章