I need to let user choose between two variants when he inputs decimal number:
use comma(,) as separator
use dot(.) as separator
By default if I use inputType="numberDecimal"
in the EditText
xml config - EditText
shows only digits and comma (,
) as possible separator.
I've tried to use android:digits="0123456789
, in my EditText
config, but without result - EditText
widget shows just digits and comma.
I want to have both variants (.
and ,
) available for user on on-screen keyboard when he tries to input decimal number.
Could you please advise?