SpeedometerView icon indicating copy to clipboard operation
SpeedometerView copied to clipboard

How can I change the start and the end value?

Open neruja opened this issue 11 years ago • 3 comments

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).

neruja avatar Oct 13 '14 13:10 neruja

Hello! Sorry for my late response. With all my work i cannot find time to update the repository. But because I am planning to add some controls, I will change the package name and the name of the class SpeedometerView to com.cardiomood.android.controls.gauge.SpeedometerGauge. Soon i will update the repo.

As for your question: the vision on the GitHub currently doesn't support minValue... minValue is always 0 However, there is a work around.

But you can draw the labels as you want, so you can display different values. Just set the max value to be 94. Then in your LabelConverter return String.valueOf(Math.round(value - maxValue)).

This will convert 0 -> -94 and 94 -> 0

ntoskrnl avatar Oct 21 '14 12:10 ntoskrnl

why i can't use this project.i download this project into my workspace on eclipes but i can't run project to my smartphone.

priewcoe avatar Nov 03 '14 10:11 priewcoe

Can you give example how to use your proect to me ?

priewcoe avatar Nov 03 '14 10:11 priewcoe