控制按钮的点击频率

/**

            public static class Utils{
	            private static final int MIN_CLICK_DELAY_TIME = 200;
                    private static long lastClickTime;
	            public static boolean isFastClick(){
	                	boolean flag = false;
	                	long curClickTime = System.currentTimeMillis();
	                	if ((curClickTime - lastClickTime) >= MIN_CLICK_DELAY_TIME){
	            		flag = true;
		}
	            	lastClickTime = curClickTime;
	        	return flag;
        	}
        }
posted @ 2018-07-19 17:45  HelloWorld0505  阅读(491)  评论(0编辑  收藏  举报