Android Question B4XFloatTextField and keyboard type: Numbers

rcla

Member
I am creating an application with B4XFloatTextField (XUI Views V2.41) and I need the keyboard to appear only with numbers, for this I use the property:
"Keyboard Type: Numbers"

But it doesn't work, the keyboard shows type "Decimal".

If I enable the "Password field", the keyboard works correctly only with numbers.

I have tested it on Android 7 and 8.

How can I make the Keyboard Type: Numbers work without enabling the "Password Field"?
 

rcla

Member
B4X:
Dim et As EditText =  B4XFloatTextField1.TextField
et.InputType = et.INPUT_TYPE_NUMBERS

Thanks, I tried it but the result is the same as before.

What I have noticed is that this problem is aesthetic, it shows the keyboard type "Decimal", but only allows entering numbers.

That is to say that in terms of functionality it is correct.
 
Upvote 0
Top