![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Utils管理
欧阳旺
一只搬砖汪
展开
-
判断手机号码是否有效
/** * 判断电话号码是否有效 * 移动:134 135 136 137 138 139 147 148 150 151 152 157 158 159 172 178 182 183 184 187 188 198 * 联通:130 131 132 145 146 155 156 166 171 175 176 185 186 * 电信: 133 149 153 170 17...原创 2019-12-19 10:43:35 · 2073 阅读 · 0 评论 -
Android防止按钮多次重复点击
public class ButtonUtils { private static long lastClickTime = 0; private static long DIFF = 5000; private static int lastButtonId = -1; /** * 判断两次点击的间隔,如果小于1000,则认为是多次无效点击 * * @ret...转载 2017-12-22 14:18:03 · 792 阅读 · 0 评论 -
仿ios自定义Dialog显示
先看下效果图首先定义一个Dialogpublic class AlertDialogUtils { private AlertDialogUtils() { } private static class ViewHolder { private static AlertDialogUtils INSTANCE = new AlertDi...原创 2019-07-24 10:28:26 · 245 阅读 · 0 评论