CurrencyEditText
CurrencyEditText copied to clipboard
Currency sign can't be removed in CurrencyEditText
I am using this library to format edittext like currency input. Example. if user wants to enter 10, he will simply enter 1000 and we will automatically show the value as 10.00. After I used this library, everything was going well. But, the problem is currency sign (eg.$ sign if my device's locale is US) appears at the start of EditText. I am trying to drop that sign. I have tried
android.hint="" like mentioned in README. But, it is not working. I know it is because of Locale. So, I tried to drop locale like below.
edCurrency.setDefaultLocale(Locale.ROOT); edCurrency.setLocale(Locale.ROOT); But, it is not also working. Could you please let us know how can I drop currency sign in CurrencyEditText. Thanks and appreciating!

if you go to CurrencyTextWatcher, at line 52 and add substring(3):
try{
textToDisplay = CurrencyTextFormatter.formatText(newText, editText.getLocale(), editText.getDefaultLocale(), editText.getDecimalDigits()).substring(3);
}
the currency sign will be cut off