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

Dollar icon #2

Open
mustafaozhan opened this issue Jun 11, 2018 · 5 comments
Open

Dollar icon #2

mustafaozhan opened this issue Jun 11, 2018 · 5 comments

Comments

@mustafaozhan
Copy link

Is it possible to get rid of dollar icon ?

@felixsoares
Copy link
Owner

felixsoares commented Jun 13, 2018

Hy Mustafa, now you can add one locale at build like

.build(new Locale("en", "En"));

or get locale default with just

.build();

@mustafaozhan
Copy link
Author

Actually the thing is that i do not want any currency icon. I just like your library it is simple to use but the project which i am using do not related with currencies.

@maqbul
Copy link

maqbul commented Jan 29, 2019

Hi - how do I assign a hex color on the bar, as the colors seems very limited. Thanks

@maqbul
Copy link

maqbul commented Jan 29, 2019

To get rid of the dollar icon, I would use a regExpression.

@maqbul
Copy link

maqbul commented Jan 29, 2019

I've done something like this.. (kotlin)

var total="$1,850.00"
var re= Regex("[^0-9,]");
var findDecimal=total.toString().indexOf(".") 

var cleanString=re.replace(total, "");
println(cleanString.toString().substring(0,findDecimal-1))

result = 1,850

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants