在用户输入手机号或者要求输入纯数字时,输入法自动切换到数字的代码

editText.setInputType(EditorInfo.TYPE_CLASS_PHONE);  

posted @ 2015-01-26 14:49  zero_7  阅读(245)  评论(0编辑  收藏  举报