![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Android
zck123456789
这个作者很懒,什么都没留下…
展开
-
Android按钮重复点击(防止按钮重复点击)
1.重写监听事件public class OnLimitClickHelper implements View.OnClickListener {public static final int LIMIT_TIME = 300;private long lastClickTime = 0;private OnLimitClickListener onLimitClickListener =...原创 2019-06-17 08:51:20 · 1064 阅读 · 0 评论 -
防止抖动
/**防抖动点击@author jiangshicheng*/public class AntiShakeUtils {private final static long INTERNAL_TIME = 1000;/**Whether this click event is invalid.@param target target view@return true,...原创 2019-06-17 09:09:49 · 695 阅读 · 0 评论