/**
* 功能:判断是否是进行了快速点击的操作
*/public class NoFastClickUtils { private static long lastClickTime = 0;//上次点击的时间 private static int spaceTime = 1000;//时间间隔 public static boolean isFastClick() { long currentTime = System.currentTimeMillis();//当前系统时间 boolean isAllowClick;//是否允许点击 if (currentTime - lastClickTime > spaceTime) { isAllowClick = false; } else { isAllowClick = true; } lastClickTime = currentTime; return isAllowClick; }}