- public class Utils {
- private static long lastClickTime;
- public static boolean isFastDoubleClick() {
- long time = System.currentTimeMillis();
- if ( time - lastClickTime < 500) {
- return true;
- }
- lastClickTime = time;
- return false;
- }
- }
-
if (ButtonUtil.isFastDoubleClick()) { T.show("点击太快"); return; }
android防止按钮连续点击开启多次界面
最新推荐文章于 2021-11-16 14:10:06 发布