Hi,
I've a problem with Hint text length in small screens. An EditText text has a "Type Cellphone" hint, but in a small screen the text is truncated. So I tried to change it inside "Script Variant" to txtPhone.Hint = "Phone" when the screen is small, but "Hit" is not recognized inside designer Scripts.
I tried to use .text instead .hint, but as you may guess, when the user types the phone number the control get mixed text and numbers.
I'm currently checking the sizes with:
I'm using lv.width and lv.height to determine if I should change hints from code. Is there any way to do it from designer?
Thanks!!
I've a problem with Hint text length in small screens. An EditText text has a "Type Cellphone" hint, but in a small screen the text is truncated. So I tried to change it inside "Script Variant" to txtPhone.Hint = "Phone" when the screen is small, but "Hit" is not recognized inside designer Scripts.
I tried to use .text instead .hint, but as you may guess, when the user types the phone number the control get mixed text and numbers.
I'm currently checking the sizes with:
B4X:
Dim lv As LayoutValues
lv = GetDeviceLayoutValues
I'm using lv.width and lv.height to determine if I should change hints from code. Is there any way to do it from designer?
Thanks!!
Last edited: