android不同的按钮一起点击崩溃解决

public class ButtonUtils {
    private static long lastClickTime;

    public synchronized static boolean isFastClick() {
        long time = System.currentTimeMillis();
        if (time - lastClickTime < 500) {
            return true;
        }
        lastClickTime = time;
        return false;
    }
}

 

使用的时候:

posted on 2016-01-27 16:20  Z2  阅读(680)  评论(0编辑  收藏  举报

导航