new Effect
if you have been using old version of this library please read this to end.
this update coming with:
- fix text size attribute in AwesomeSpeedometer #70 .
- change the color of just one tick #71 .
now you can use SpannableString for Ticks just use custom tick label and returnSpannableStringlike this:
speedometer.setOnPrintTickLabel(new OnPrintTickLabel() {
@Override
public CharSequence getTickLabel(int tickPosition, float tick) {
if (tick == 0) {
SpannableString s = new SpannableString(String.format(Locale.getDefault(), "%d", (int)tick));
s.setSpan(new ForegroundColorSpan(0xffff1117), 0, 1, 0); // change first char color to Red.
return s;
}
// null means draw default tick.
return null;
}
});- min and max speed in float #64 .
- new indicator light effect #78 (beta).
new effect behind the indicator, it still unstable if you like to use this effect just usesv_withIndicatorLight="true"and you can customize its colorsv_indicatorLightColor="#BB0000FF"
- new notes positions.
if you were usingCenterIndicatorfor Note position, change toQuarterSpeedometer
if you were usingTopIndicator, change toTopSpeedometer.
