Skip to content

Releases: Gruzer/simple-gauge-android

Simple Gauge Library 0.3.1

09 Feb 21:42
Compare
Choose a tag to compare

Bug Fix

  1. Negative range issue --fixed

Simple Gauge Library 0.3.0

09 Feb 15:07
Compare
Choose a tag to compare

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

10 Jul 14:31
Compare
Choose a tag to compare

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

15 Jan 18:43
Compare
Choose a tag to compare

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