Android Question B4xView EditText how to set inputmask format

LucaMs

Expert
Licensed User
Longtime User
Hi
as in subject i need to set edittext format in B4xview for cross platform B4A - B4I.
thanks
In cases where there are no particular features for a given B4XView, it is necessary to cast it and obtain the native View (the EditText in B4A, in B4i... I don't know, I don't have it).
Once you have the EditText apply the input mask to it.
 
Upvote 0

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