RecyclerTreeView icon indicating copy to clipboard operation
RecyclerTreeView copied to clipboard

animation too slow

Open KnIfER opened this issue 5 years ago • 4 comments

KnIfER avatar Nov 21 '20 08:11 KnIfER

太慢了太慢了

KnIfER avatar Nov 21 '20 08:11 KnIfER

	rv.setItemAnimator(null);

KnIfER avatar Nov 21 '20 09:11 KnIfER

          // Prevent multi-click during the short interval.
           try {
                long lastClickTime = (long) holder.itemView.getTag();
                if (System.currentTimeMillis() - lastClickTime < 500)
                    return;
            } catch (Exception e) {
                holder.itemView.setTag(System.currentTimeMillis());
            }

硬生生弄出一个不应期来,有点low……

KnIfER avatar Nov 21 '20 09:11 KnIfER

SVID_20201121_200709_1_SchivoNo 0_GifNo 0

https://github.com/KnIfER/PolymPic/commit/3800a5e78bcdee9d1c42e1f8189b1e6c554c9d44

调教完毕,能快速响应点击事件。

关于 #16 ,其实是onToggle监听处理失当。

KnIfER avatar Nov 21 '20 12:11 KnIfER