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

nanjidusan

Member
Licensed User
How to Hiding the soft keyboard also causes EditText to lose focus ? How to do ?
 
Last edited:

nanjidusan

Member
Licensed User
You can intercept the height changed event with IME library and set the focus to a different control.
Thank you for your advice , it's very helpful !
B4X:
Sub IME_HeightChanged(NewHeight As Int, OldHeight As Int)
    If NewHeight > OldHeight Then
        dummyFocus.RequestFocus
        
    End If
    
End Sub
 
Upvote 0
Top