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

为什么构造方法中要先调用setProgress后调用setMax呐? #61

Open
feng19960223 opened this issue Mar 12, 2018 · 0 comments
Open

Comments

@feng19960223
Copy link

我在使用的时候,需求初始的max是500,current是300,当我在xml设置完成后显示的是0%,后来我查看了源码并且修改了原来的构造方法,将setMax和setProgress执行顺序交换,解决了我的问题,正常显示60%,我想问的是,为什么要先执行setProgress后执行setMax,他们会产生bug吗?

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

1 participant