anastr / SpeedView

Dynamic Speedometer and Gauge for Android. amazing, powerful, and multi shape :zap:
Apache License 2.0
1.28k stars 321 forks source link

Negative values #230

Closed kamanlid closed 1 year ago

kamanlid commented 2 years ago

Thanks for sharing this awsome project. Is there a way to have negative values? say from -100 to -10? (app:sv_maxSpeed="-10" and app:sv_minSpeed="-100")

It seems that it only accept positive values.

Thanks!

anastr commented 2 years ago

It seems changing both max & min speed from xml has an issue.

I'll fix this issue in the next version. For now you may assign the values from your code using setMinMaxSpeed(min, max) method.

Thanx for contributing.

kamanlid commented 2 years ago

Awsome! Thanks a lot for your quick reply! It works from the code. Not a big deal for now if it doesn't work from the layout. Thanks!

kamanlid commented 2 years ago

Workaround: Can be changed from the code.