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

Is it possible to have the text under SpeedView #235

Closed adabingw closed 2 years ago

adabingw commented 2 years ago

Is your feature request related to a problem? Please describe. Currently, the SpeedView speed and units is between the start and end parts of the component. If I want to increase the font size for the speed, it would cover part of the speedview and that looks unprofessional. I was wondering if there's a way to put the speed and unit under the SpeedView.

Describe the solution you'd like Either something similar to sv_unitUnderSpeedText where it's something like sv_SpeedTextUnderSv. Another suggestion would be to not cut off the text when we add negative padding to the SpeedText.

Describe alternatives you've considered I've tried adding negative padding to the SpeedText but that cuts off the text and I can't change the height because the SpeedView component is restricted to be rectangular.

Additional context Add any other context or screenshots about the feature request here.

anastr commented 2 years ago

Hi @adabingw If sv_speedTextPosition and sv_unitUnderSpeedText doesn't suit your requirement, you can use your own TextView to display your speed value. You can update the speed text by listening to speed change through Speed listeners.