我想将字符限制为0-9,az,AZ和空格键.设置inputtype我可以限制为数字,但我无法弄清楚Inputfilter查看文档的方式.
我试过了
<EditText
android:id="@+id/editText1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:ems="10"
android:inputType="textPersonName" >
Run Code Online (Sandbox Code Playgroud)
我意识到它可以接受任何角色.那么,android:inputType="textPersonName"与没有它相比,有什么特别之处呢?