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

setCurrentValue 显示不准确 #12

Open
zkjmyy opened this issue Sep 3, 2020 · 3 comments
Open

setCurrentValue 显示不准确 #12

zkjmyy opened this issue Sep 3, 2020 · 3 comments

Comments

@zkjmyy
Copy link

zkjmyy commented Sep 3, 2020

setCurrentValue 显示不准确

@zjun615
Copy link
Owner

zjun615 commented Sep 5, 2020

哪个控件,能否详细点

@AlpsDog
Copy link

AlpsDog commented Mar 10, 2021

TimeRulerView,在setCurrentValue给的值比较大时,显示的不准

@AlpsDog
Copy link

AlpsDog commented Mar 10, 2021

private void calculateValues() {
mCurrentDistance = currentTime * 1.0f / mUnitSecond * mUnitGap;
}建议currentTime * 1.0f,否则你这float类型小数位永远是.0,这样肯定会不准确。

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

3 participants