如题:Android EditText输入限制最大字符长度  和 限制只能输入数字和字母(包含大小写),主要是如下两个属性:

            android:maxLength="10"
            android:digits="0123456789qwertyuioplkjhgfdsazxcvbnmQWERTYUIOPLKJHGFDSAZXCVBNM"

          

 
   

       参考这个博客:http://blog.csdn.net/zhuzhiqiang_zhu/article/details/51220471,不过没有控制大写的情况,我上面补充了一下

更多相关文章

  1. Android设置Edittext只能输入字母数字弹出英文键盘
  2. Android 按字母排序的通讯录
  3. android的View的大小写字母问题
  4. android 设置EditText只能输入大写字母,Fragment的软键盘输入模
  5. Android EditText 限制输入数字和字母设置
  6. Android Button字母自动全部大写的问题
  7. android 只能输入数字和字母并且弹出数字键盘
  8. 输入一个字符,如何判断是字母,数字还是特殊字符
  9. c++大小写字母转换的思路有几种?

随机推荐

  1. android 使用TextView/EditText应该注意
  2. android browser 的几个小feature (四) k
  3. TextView字间距和行间距设置
  4. Android(安卓)Handler机制
  5. 使用AIDL实现Android的跨进程通信
  6. android checkbox,radiobox style自定义
  7. Phone拨号调起InCallUi流程(Phone 9.0 )(P
  8. android:configChanges属性总结
  9. Android(安卓)Drawable Importer的使用
  10. android开发环境