Android Question [SOLVED]How to make EditText lose focus when hiding soft keyboard?

Discussion in 'Android Questions' started by nanjidusan, Mar 1, 2019.

  1. nanjidusan

    nanjidusan Member Licensed User

    How to Hiding the soft keyboard also causes EditText to lose focus ? How to do ?
    Last edited: Mar 1, 2019
  2. Erel

    Erel Administrator Staff Member Licensed User

    You can intercept the height changed event with IME library and set the focus to a different control.
    MarkusR likes this.
  3. nanjidusan

    nanjidusan Member Licensed User

    Thank you for your advice , it's very helpful !
    Sub IME_HeightChanged(NewHeight As Int, OldHeight As Int)
    If NewHeight > OldHeight Then
    End If
    End Sub
  1. 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.
    Dismiss Notice