Pygmalion69 / Gauge

A Gauge View for Android
Apache License 2.0
68 stars 26 forks source link

Max value of the gauge doesn't change #1

Closed RamithRD closed 7 years ago

RamithRD commented 7 years ago

Thank you very much for the gauge view, it suits well for IoT related projects.

I'm facing an issue setting the max value of the gauge, I want it to be 100 but it always defaults as 1000 even if I change the maxValue attribute.

<de.nitri.gauge.Gauge
        android:id="@+id/flow_rate_gauge"
        android:layout_width="250dp"
        android:layout_height="250dp"
        android:layout_gravity="center"
        android:layout_marginTop="10dp"
        gauge:initialValue="30"
         gauge:maxValue="100"
         gauge:minValue="0"
         gauge:totalNicks="120"
         gauge:valuePerNick="1" />

What am I missing here?

Pygmalion69 commented 7 years ago

@RamithRD Sorry, I can't reproduce the issue. Here's what it looks like on my device:

screen shot 2017-07-01 at 10 58 39