RulerView icon indicating copy to clipboard operation
RulerView copied to clipboard

setCurrentValue 显示不准确

Open zkjmyy opened this issue 4 years ago • 3 comments

setCurrentValue 显示不准确

zkjmyy avatar Sep 03 '20 10:09 zkjmyy

哪个控件,能否详细点

zjun615 avatar Sep 05 '20 05:09 zjun615

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

AlpsDog avatar Mar 10 '21 03:03 AlpsDog

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

AlpsDog avatar Mar 10 '21 03:03 AlpsDog