EditText只输入数字字母

转载自:http://blog.sina.com.cn/s/blog_777c699301010bc3.html

android:inputType="number"
android:digits="0123456789abcdefghigklmnopqrstuvwxyzABCDEFGHIGKLMNOPQRSTUVWXYZ"
同时设置这两个就可以了。

猜你喜欢

转载自blog.csdn.net/qq_24712507/article/details/106102322
今日推荐