Android Question Problem hiding keyboard in CustomLayoutDialog

rscheel

Well-Known Member
Licensed User
Longtime User
I am trying to hide the keyboard using a browse button in dialog, the problem is that the keyboard is not hidden, there is another way to do this.



B4X:
Sub BtnBuscarCod_Click
    If EdBuscaCodigo.Text.Length > 0 And EdBuscaCodigo.Text.Length <= 3 Then
        Dim CloseKey As IME
        CloseKey.Initialize("")
        CloseKey.HideKeyboard
        ToastMessageShow("Buscando código.", False)
    Else
        ToastMessageShow("Debe ingresar un numero mayor que 0 y menor o igual a 3.", False)
    End If
End Sub
 

Seneca

Active Member
Licensed User
Hi,

In the case of being a FloatLabeledEditText (ViewsEx), this solution doesn't work.

B4X:
If res = DialogResponse.POSITIVE Then
     FloatLabeledEditText1.EditText.Enabled = False
     ....
 
Last edited:
Upvote 0

Seneca

Active Member
Licensed User

I've solved it:

B4X:
Dim ph As Phone
ph.HideKeyboard(Activity)
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…