If I place an EditText onto a layout then in code request focus to it the Input Type, which is NUMBERS is totally ignored and the alpha keyboard is being shown.
Sub etMorning_FocusChanged (HasFocus As Boolean)
If HasFocus Then
etMorning.SelectAll
IME.SetCustomFilter(etMorning, etMorning.INPUT_TYPE_NUMBERS, "0123456789")
IME.ShowKeyboard(etMorning)
End If
End Sub
now when I do this
B4X:
etMorning.RequestFocus
from a button press I get the desired effect. Just setting the view's Input Type in the designer doesn't work and this is my workaround.
regards, Ricky
P.S It's good I have some time on my hands now lol
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.