We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
如题,设置最小值为-90,最大值为90,表盘显示的刻度分别为-90,36,72,108,144,90 `private String[] getMeasureNumbers() { String[] strings = new String[mBigSliceCount + 1]; for (int i = 0; i <= mBigSliceCount; i++) { if (i == 0) { strings[i] = String.valueOf(mMinValue); } else if (i == mBigSliceCount) { strings[i] = String.valueOf(mMaxValue); } else { strings[i] = String.valueOf(((mMaxValue - mMinValue) / mBigSliceCount) * i); } }
return strings; }`
这个计算刻度的方法应该修改一下
The text was updated successfully, but these errors were encountered:
`private String[] getMeasureNumbers() { String[] strings = new String[mBigSliceCount + 1]; for (int i = 0; i <= mBigSliceCount; i++) { if (i == 0) { strings[i] = String.valueOf(mMinValue); } else if (i == mBigSliceCount) { strings[i] = String.valueOf(mMaxValue); } else { int average = (mMaxValue - mMinValue) / mBigSliceCount; strings[i] = String.valueOf(mMinValue + average * i); } }
我改成这样测试了一下,不知道有没有问题,耐心等待大神的修改方案~~
Sorry, something went wrong.
相信最新的DashboardView1已经解决了这个问题
DashboardView1
No branches or pull requests
如题,设置最小值为-90,最大值为90,表盘显示的刻度分别为-90,36,72,108,144,90
`private String[] getMeasureNumbers() {
String[] strings = new String[mBigSliceCount + 1];
for (int i = 0; i <= mBigSliceCount; i++) {
if (i == 0) {
strings[i] = String.valueOf(mMinValue);
} else if (i == mBigSliceCount) {
strings[i] = String.valueOf(mMaxValue);
} else {
strings[i] = String.valueOf(((mMaxValue - mMinValue) / mBigSliceCount) * i);
}
}
这个计算刻度的方法应该修改一下
The text was updated successfully, but these errors were encountered: