2012-03-20 76 views

回答

2

您需要在xml文件中將下列​​行與其他EditText行一起放入。

android:maxLength="10" 
3

只需使用android:maxLength="8"

<EditText 
     android:id="@+id/editText1" 
     android:layout_width="wrap_content" 
     android:layout_height="wrap_content" 
     android:maxLength="8">