1
I am working with values in editText and I need the input to be only numbers and comma to floating point. I tried with inputType="numberDecimal" but when opening the keyboard only allows the point and not the comma. I need the input in the Brazilian standard... ex: 1.00
<EditText
android:id="@+id/tf"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:digits="0123456789,"
android:inputType="numberDecimal"
/>
Someone’s been through it?
You would be able to present the code in question here @programadorCS ?
– Hyago Santos
opa, sorry, I had put but for some reason did not appear in the question, I put in the answer
– programadorCS
Edit your question and add code please.
– Edu Mendonça
Here’s a solution https://www.youtube.com/watch?v=ydF4sQr8kAs
– Murillo Comino
Murillo Comino, it didn’t work
– programadorCS
What I usually do is leave the input with the "." itself, but I change the textwatcher to when to use the "." switch to ",".
– Murillo Comino
Murillo Comino is giving replace on onTextChanged but this locking component seems to loop when type
– programadorCS