InputFilter filter = new InputFilter() { public CharSequence filter(CharSequence source, int start, int end, Spanned dest, int dstart, int dend) { for (int i = start; i < end; i++) { if (!Character.isLetterOrDigit(source.charAt(i))) { return ""; } } return null; }};edit.setFilters(new InputFilter[] { filter });
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)