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

有个BUG请关注下 #65

Open
xiasang920 opened this issue Sep 5, 2019 · 6 comments
Open

有个BUG请关注下 #65

xiasang920 opened this issue Sep 5, 2019 · 6 comments

Comments

@xiasang920
Copy link

初始setValue后,如果不滚动,getValue获取到的值是0

@Carbs0126
Copy link
Owner

嗯,感谢提醒,我今天改一下这个问题

@Carbs0126
Copy link
Owner

建议先使用post的方式获得value

mNumberPickerView.post(new Runnable() {
            @Override
            public void run() {
                mNumberPickerView.getValue();
            }
        });

@xiasang920
Copy link
Author

建议先使用post的方式获得value

mNumberPickerView.post(new Runnable() {
            @Override
            public void run() {
                mNumberPickerView.getValue();
            }
        });

感谢回复,你的方案有效,解决了我的问题

@Carbs0126
Copy link
Owner

不客气

@wenzhifeifeidetutu
Copy link

确实有效

@wenideveloper
Copy link

这个问题在最新版本中解决了吗,我用的1.2.0版本,使用的是阴历阳历切换那个仓库,遇到类似问题,日期控件init初始化后,立刻就去获取最新的日期信息,获取到的日期都是1901-1-1

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

4 participants