The inputType
numberDecimal
in EditText
uses the dot .
as decimal separator. In Europe it's common to use a comma ,
instead. Even though my locale is set as german the decimal separator is still the .
Is there a way to get the comma as decimal separator?
Best Answer
A workaround (until Google fix this bug) is to use an
EditText
withandroid:inputType="numberDecimal"
andandroid:digits="0123456789.,"
.Then add a TextChangedListener to the EditText with the following afterTextChanged: