CottaCush / CurrencyEditText

💰 A library to dynamically format your EditTexts to take currency inputs
Apache License 2.0
131 stars 28 forks source link

Format EditText output values with the supplied locale. #6

Closed rasheedsulayman closed 4 years ago

rasheedsulayman commented 4 years ago

This PR formats output values from the CurrencyEditText using the supplied Locale. The previous implementation wrongfully formats output values using an implicit locale that assumes that the decimal symbol will always be ".". This caused issues with locales/countries that don't have "." as the decimal symbol.

Finally, the PRs adds support for getting user input as a BigDecimal

rasheedsulayman commented 4 years ago

The hardcoded String values have been extracted @djubreel

efguydan commented 4 years ago

Nice work, @r4sh33d