Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

动态设置wheelview的时候会延迟显示 #71

Open
andasl opened this issue Apr 8, 2021 · 1 comment
Open

动态设置wheelview的时候会延迟显示 #71

andasl opened this issue Apr 8, 2021 · 1 comment

Comments

@andasl
Copy link

andasl commented Apr 8, 2021

第一次显示出来会延迟显示
然后用户操作,修改wheelview数据,
此时四个wheelview同时设置data和selection的时候,后面两个延迟显示

@zzzDragon
Copy link

将这个方法的延迟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);
});
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants