K Kostas_Bar Member Jul 19, 2023 #1 Hello everyone! I have an EditText field with the keyboard set to DECIMAL_NUMBERS. I want to take the input as float and place it in a JSON. I need the decimal point to be a "," (European style) instead of "." (USA style). The "," cannot be pressed now at all. I ve seed this solution, but it doesnt work with the interface. I want the user to be able to use "," instead of "." and not just change the input afterwards. I thought that perhaps there is a regional setting to fix that. If not is there another way?? Thanks in advance.
Hello everyone! I have an EditText field with the keyboard set to DECIMAL_NUMBERS. I want to take the input as float and place it in a JSON. I need the decimal point to be a "," (European style) instead of "." (USA style). The "," cannot be pressed now at all. I ve seed this solution, but it doesnt work with the interface. I want the user to be able to use "," instead of "." and not just change the input afterwards. I thought that perhaps there is a regional setting to fix that. If not is there another way?? Thanks in advance.
Erel B4X founder Staff member Licensed User Longtime User Jul 19, 2023 #2 Kostas_Bar said: I ve seed this solution, but it doesnt work with the interface. Click to expand... There are better options such as B4XFormatter. You can set the allowed characters with IME.SetCustomFilter: https://www.b4x.com/android/forum/t...-keyboard-with-the-ime-library.14832/#content Though the exact behavior depends on the keyboard app so it won't be 100% reliable. Upvote 1
Kostas_Bar said: I ve seed this solution, but it doesnt work with the interface. Click to expand... There are better options such as B4XFormatter. You can set the allowed characters with IME.SetCustomFilter: https://www.b4x.com/android/forum/t...-keyboard-with-the-ime-library.14832/#content Though the exact behavior depends on the keyboard app so it won't be 100% reliable.