导航

2017年8月23日

摘要: 1.饿汉式 public class DownLoad{ private static final DownLoad mDownload =new DownLoad(); private download(){ } public static DownLoad getInstance(){ retu 阅读全文

posted @ 2017-08-23 10:47 猿起 阅读(338) 评论(0) 推荐(0)

2017年7月17日

摘要: //把下列代码放入BaseActivity中即可 阅读全文

posted @ 2017-07-17 08:54 猿起 阅读(365) 评论(0) 推荐(0)

2017年7月13日

摘要: //判断手机格式是否正确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)

2017年7月11日

摘要: Warning:Conflict with dependency 'com.google.code.findbugs:jsr305'. Resolved versions for app (3.0.1) and test app (2.0.1) differ. See http://g.co/and 阅读全文

posted @ 2017-07-11 12:54 猿起 阅读(227) 评论(0) 推荐(0)