red30 Well-Known Member Licensed User Longtime User Oct 28, 2020 #1 If I use EditText as B4XView. Can I somehow select an input type like a regular EditText?
Erel B4X founder Staff member Licensed User Longtime User Oct 28, 2020 #2 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. Upvote 0
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.
red30 Well-Known Member Licensed User Longtime User Oct 28, 2020 #3 Erel said: 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. Click to expand... Yes, I just needed a cross platform solution. I will use B4XFloatTextField. Thanks for your reply. Upvote 0
Erel said: 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. Click to expand... Yes, I just needed a cross platform solution. I will use B4XFloatTextField. Thanks for your reply.
red30 Well-Known Member Licensed User Longtime User Oct 28, 2020 #4 For B4XFloatTextField, I see the text type property only in the designer. How can I change it in the code? Upvote 0
For B4XFloatTextField, I see the text type property only in the designer. How can I change it in the code?
Erel B4X founder Staff member Licensed User Longtime User Oct 28, 2020 #5 B4XFloatTextField.Text = "Aaa" Upvote 0
red30 Well-Known Member Licensed User Longtime User Oct 28, 2020 #6 Erel said: B4XFloatTextField.Text = "Aaa" Click to expand... 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
Erel said: B4XFloatTextField.Text = "Aaa" Click to expand... 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?
Erel B4X founder Staff member Licensed User Longtime User Oct 28, 2020 #7 It is not possible. Upvote 0
Bladimir Silva Toro Active Member Licensed User Longtime User Oct 28, 2020 #8 B4XFloatTextField.EditText.InputType = B4XFloatTextField .INPUT_TYPE_NUMBERS Upvote 0