type
status
date
slug
summary
tags
category
icon
password
类似功能的实现方案有很多,我的实现方式相对简单,使用也很灵活。
简单思路就是当用户点击一次过后,设置该view不可点击,一段时间后恢复点击。
代码如下:
使用方法:
在view的点击回调中添加preventViewMultipleClick
- 作者:LuluNotion
- 链接:https://tangly1024.com/article/android-util-preventViewMultipleClick
- 声明:本文采用 CC BY-NC-SA 4.0 许可协议,转载请注明出处。
相关文章