Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Speed formatting in locale specific manner not possible #173

Closed
chpasha opened this issue Feb 12, 2020 · 3 comments
Closed

Speed formatting in locale specific manner not possible #173

chpasha opened this issue Feb 12, 2020 · 3 comments
Assignees

Comments

@chpasha
Copy link

chpasha commented Feb 12, 2020

The title say it all - I want to format the values (that are not actually a speed, but rather a mileage, so very big) in locale specific way, for instance 38.000 for German locale but I don't see any possibility for this. The function getSpeedText that returns "formatted" text can only format the number as scientific float and we can influence only the number of decimal positions. And it cannot be overwritten via inheritance (still kind of dumb to create a class to just overwrite main label formatting). It would be nice if there were a possibility to supply a format like with ticks OR at least use NumberFormat classes to properly format the values by default in locale friendly manner for FLOAT and INTEGER speedTextFormat

@chpasha
Copy link
Author

chpasha commented Feb 12, 2020

P. S. I don't know Kotlin at all, so maybe I've overlooked some workaround (or direct) possibility to specify label format

@anastr
Copy link
Owner

anastr commented Feb 13, 2020

Thanks for reporting, this should be added long time ago.

@anastr anastr self-assigned this Feb 13, 2020
@anastr
Copy link
Owner

anastr commented Feb 23, 2020

done, with SpeedTextListener.
new version c93b5e1.

@anastr anastr closed this as completed Feb 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants