Android Question B4xView EditText how to set inputmask format

LucaMs

Expert
Licensed User
Longtime User
Best to use B4XFloatTextField (XUI Views). It is cross platform and you can set the input type with the designer.
I haven't seen that property; I don't think there is.

1627792743151.png
 
Upvote 0

Gianni Sassanelli

Active Member
Licensed User
Longtime User
thank's everyone
i just use B4XFloatTextField with keyboardtype = numbers but i need format also
for example i need as format "##" because i need 0 to 99 numbers in this file
or
i set keyboardtype = text and i need format as "xxx-xxxxxxxxxxx-##"
now i use maskededittext library but is is not compatible for crossplattform project
i want make a simply app compatible with B4a and B4I
 
Upvote 0

LucaMs

Expert
Licensed User
Longtime User
thank's everyone
i just use B4XFloatTextField with keyboardtype = numbers but i need format also
for example i need as format "##" because i need 0 to 99 numbers in this file
or
i set keyboardtype = text and i need format as "xxx-xxxxxxxxxxx-##"
now i use maskededittext library but is is not compatible for crossplattform project
i want make a simply app compatible with B4a and B4I
Read my anwser, post #2.

To date there is not always a solution common to all platforms (B4A, B4J, B4i) and in these cases you will have to use the native Views of each S.O.
 
Upvote 0

TILogistic

Expert
Licensed User
Longtime User
you can use this library:
 
Last edited:
Upvote 0

TILogistic

Expert
Licensed User
Longtime User
It is not X platform. See his first post. That is usually the case when a thread has so many posts. Its original intent gets lost.
Estimated,

My intention was, that you can use as a base the java code published in that post, to create a class with b4X code.

It's what our engineers did (sons)

Regards.
 
Upvote 0
Top