Android Question EditText As B4XView InputType

red30

Well-Known Member
Licensed User
Longtime User
If I use EditText as B4XView. Can I somehow select an input type like a regular EditText?
 

red30

Well-Known Member
Licensed User
Longtime User
Rule number #1 of B4XView: you can always cast the view back to the native type and do whatever you like.

B4X:
Dim et As EditText = YourView
et.InputType = ...

I recommend using B4XFloatTextField from XUI Views, in cross platform solution.
Yes, I just needed a cross platform solution. I will use B4XFloatTextField. Thanks for your reply.
 
Upvote 0

red30

Well-Known Member
Licensed User
Longtime User
For B4XFloatTextField, I see the text type property only in the designer. How can I change it in the code?
 
Upvote 0

red30

Well-Known Member
Licensed User
Longtime User
B4XFloatTextField.Text = "Aaa"
I have incorrectly explained. I'm interested in the InputType of the B4XFloatTextField. How to select INPUT_TYPE_TEXT, INPUT_TYPE_NUMBERS, INPUT_TYPE_PHONE?
 
Upvote 0
Top