WheelView icon indicating copy to clipboard operation
WheelView copied to clipboard

大佬,有个问题就是加载数据比较慢,每次打开就会闪一下,用户体验很不好怎么办?

Open SUHONGJIN opened this issue 5 years ago • 3 comments

SUHONGJIN avatar Aug 28 '19 01:08 SUHONGJIN

解决了,谢谢。

SUHONGJIN avatar Aug 28 '19 01:08 SUHONGJIN

怎么解决的

DongDian455 avatar Jan 21 '20 07:01 DongDian455

将这个方法的延迟500毫秒去掉 /** * 设置滚轮位置 * * @param selection */ @Override public void setSelection(final int selection) { mSelection = selection; setVisibility(View.INVISIBLE); WheelView.this.post(() -> { WheelView.super.setSelection(getRealPosition(selection)); refreshCurrentPosition(false); setVisibility(View.VISIBLE); }); }

zzzDragon avatar Aug 30 '22 03:08 zzzDragon