Releases: Gruzer/simple-gauge-android
Releases · Gruzer/simple-gauge-android
Simple Gauge Library 0.3.1
Simple Gauge Library 0.3.0
What New
Gauge Type | Whats New |
---|---|
Half Gauge | Add option to set min/max value color |
All Gauge's | Add option to set value color |
All Gauge's | Add option to set custom value formatter |
HalfGauge
set custom color for value and min and max
halfGauge.setValueColor(Color.BLUE)
halfGauge.setMaxValueTextColor(Color.RED)
halfGauge.setMaxValueTextColor(Color.GREEN)
gauge.setValueColor(Color.BLACK)
All Gauge's
Set custom value formatter
Kotlin
arcGauge.setFormatter(ValueFormatter {
it.toInt().toString()
})
Java
arcGauge.setFormatter(new ValueFormatter() {
@Override
public String getFormattedValue(double value) {
int intValue = Double.valueOf(value).intValue();
return String.valueOf(intValue);
}
});
or implement ValueFormatter interface
public class MyValueFormatter implements ValueFormatter {
@Override
public String getFormattedValue(double value) {
int intValue = Double.valueOf(value).intValue();
return String.valueOf(intValue);
}
}
Simple Gauge Library 0.2.2
What New
Gauge Type | Whats New |
---|---|
Half Gauge | Add option enable disable Needle animation |
All Gauge's | Add option to set custom background color |
gauge.enableAnimation(true/false)
gauge.setGaugeBackGroundColor(Color.LTGRAY)
Simple Gauge Library 0.2.0
What New
Add support for negative ranges and values
Add option display background path
of gauge with color of current range in alpha
Gauge Type | Whats New |
---|---|
Half Gauge | Add option enable disable shadow for needle and background |
Full Gauge | Add option to show point with arrow |
Fix small bugs