CodeAndMagic / GaugeView

An Android library for drawing gauges on Canvas.
Apache License 2.0
224 stars 156 forks source link

Handle scaleStartValue different than zero and allow to specify value ra... #11

Closed hoshantm closed 9 years ago

hoshantm commented 9 years ago

...nges and color ranges for each gauge

Scale starting at a value different than zero was not properly handled. This has been fixed. The value ranges and corresponding colors were only specified in the ranges and rangeColors array resources. The rangeValues and rangeColors attributes had no effect when specified for the GaugeView widget. You can now specify gauge:rangeValues="@array/ranges" and gauge:rangeColors="@array/rangeColors" and have the freedom to specify different values and colors for each Gauge instance.