CodeAndMagic / GaugeView

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

How can I change the start and the end value? #8

Open neruja opened 10 years ago

neruja commented 10 years ago

I'm trying to make Signal meter with dBm value. How can I change the start and the end value. It shoule start with -94 dBm (very bad signal) and end at 0 dBm (excellent signal strength).

Tomaltach commented 7 years ago

You can change the start and end values in the XML like in the code below.

<org.codeandmagic.android.gauge.GaugeView android:id="@+id/gauge_view1" android:layout_width="match_parent" android:layout_height="0dp" android:layout_weight="1" gauge:scaleStartValue="-94" gauge:scaleEndValue="0" />