EditText輸入不能爲中文

 <!-- 設置EditText的輸入各位不能爲中文 -->
    <string name="register_name_digits">._@0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLIMNOPQRSTUVWXYZ</string>



<EditText
                android:id="@+id/et_input_number"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:background="#fff"
                android:hint="選填"
                android:digits="@string/register_name_digits"
                android:padding="5dip"
                android:singleLine="true" />


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章