Hi, I am trying to get the status of the Keyboard, whether it is showed or not through code. Is there a way to get it done. I tried it through IME Library, but can't manage to get the status. Thank you ...
Hi, I solved it. Following is the code. Here my device height 1240 but NewHeight shows 1232. So I deduct it with 50 ...
B4X:
Sub IME_HeightChanged(NewHeight As Int, OldHeight As Int)
' ToastMessageShow ("Device Height - " & GetDeviceLayoutValues.Height & ", New Height - " & NewHeight & ", Old - " & OldHeight, False)
If NewHeight > (GetDeviceLayoutValues.Height - 50) Then ' Keyboard Is Down
ToastMessageShow ("KeyBoard Down - " & NewHeight, False)
Else
ToastMessageShow ("KeyBoard Up - " & NewHeight, False)
End If
End Sub
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.