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

ImageSpeedometer can't call drawDefMinMaxSpeedPosition without overriding class #246

Open agronick opened 9 months ago

agronick commented 9 months ago

Describe the bug This seems like an oversight. There is no way to set min and max on an image speedometer without overriding the class. SpeedView has this code in updateBackgroundBitmap.

        if (tickNumber > 0)
            drawTicks(c)
        else
            drawDefMinMaxSpeedPosition(c)

ImageSpeedometer just has

        drawMarks(c)
        drawTicks(c)

drawDefMinMaxSpeedPosition is protected so you can't call it without overriding the class.

anastr commented 9 months ago

ImageSpeedometer doesn't have this functionality