摘要:
//判断手机格式是否正确public static boolean isMobileNO(String mobiles) { Pattern p = Pattern.compile("^(13[0-9]|14[5|7|9]|15[0|1|2|3|5|6|7|8|9]|17[0|1|6|7|8]|18 阅读全文
posted @ 2017-07-13 11:54 猿起 阅读(199) 评论(0) 推荐(0)
|
|
|
|
摘要:
//判断手机格式是否正确public static boolean isMobileNO(String mobiles) { Pattern p = Pattern.compile("^(13[0-9]|14[5|7|9]|15[0|1|2|3|5|6|7|8|9]|17[0|1|6|7|8]|18 阅读全文
posted @ 2017-07-13 11:54 猿起 阅读(199) 评论(0) 推荐(0)
摘要:
1.限制输入类型 代码:et_lxnr.setInputType(InputType.TYPE_TEXT_VARIATION_LONG_MESSAGE);xml:android:inputType="number" 2.限制输入长度 代码:et_lxnr.setFilters(new InputFi 阅读全文
posted @ 2017-07-13 11:48 猿起 阅读(545) 评论(0) 推荐(0) |
|