Android Question IME SetCustomFilter does not accept / as an allowable character

Gerrard

Member
Licensed User
I have an app that needs the numbers 0 to 9 as well as the slash /. I have tried IME SetCustomFIlter but it does not activate the / on the numeric keyboard.
B4X:
IME.SetCustomFilter(edtText, edtText.INPUT_TYPE_NUMBERS, "0123456789/")
I tried a "0123456789." and it activated the dot, but not the slash /.
What can I do?
 

Erel

Administrator
Staff member
Licensed User
There is no slash button in the numeric keypad. You can switch to INPUT_TYPE_TEXT.
 

Gerrard

Member
Licensed User
Erel, I'm missing something here. Both my Samsung tablet and my Samsung phone show the / character as part of the numeric keyboard after pressing the 123 key to get the numeric keyboard.
Yes, the INPUT_TYPE_TEXT does work. I tried it, but I don't want to use it because I wanted the numeric keyboard to come up, and did not want to have to press the 123 key to get the numeric keyboard.
 

Erel

Administrator
Staff member
Licensed User
On the device I tested it there was no / button. Eventually it is up to the keyboard app to correctly manage the filter. There is not much that you can do about it.
 
Top