HTC Softkeyboard key that hidden the keyboard
-
18-04-2021 - |
Question
On the HTC keyboard there is an additional key that allows the keyboard to be hidden. When this key is pressed the keyboard is hidden but no KeyEvent.
How to get this event or callback method maybe?? I can't use this method protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) because my app is in landscape mode, so it show full screen softkeyboard and doesn't resize the activity. But i need to know the event when my softkeyboard no longer visible. Thanks
Solution
Unfortunately it is impossible. There is no callback when the keyboard opens or closes.
OTHER TIPS
If you use BaseinputConnection
you can override finishComposingText()
. That methode will be called when you finish inputting text or when hiding soft keyboard.