This is how to set keyboard type to B4XFloattext (YOu can change the type to numbers, decimal, text, etc).
This code is from B4i.(It was from a code sample posted by Erel but i couldn't find that thread now)
B4X:
Dim tf As TextField = edtIncome.TextField
tf.KeyboardType = tf.TYPE_DECIMAL_PAD
This is how to set keyboard type to B4XFloattext (YOu can change the type to numbers, decimal, text, etc).
This code is from B4i.(It was from a code sample posted by Erel but i couldn't find that thread now)
B4X:
Dim tf As TextField = edtIncome.TextField
tf.KeyboardType = tf.TYPE_DECIMAL_PAD
Thanks but I needed to be able to set the KeyboardType property of B4XFloatTextField (so for B4A too and the code you posted does not take in account multiline) in my project code.
I modified B4XFloatTextField myself for this purpose but I am forced to give a different name to this View; it is much better that Erel adds it.
this is the Wishes thread, not the libraries thread
I have not published it...
...and I would prefer Erel to modify his library, otherwise you would have B4XFloatTextField, which is part of XUI Views, and my lmB4XFloatTextField (however they would not conflict with each other)
If Erel will let me know that he won't add that property then I'll publish it.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.