HTC Softkeyboard key that hidden the keyboard

585 views Asked by At

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

2

There are 2 answers

0
Barry Fruitman On BEST ANSWER

Unfortunately it is impossible. There is no callback when the keyboard opens or closes.

0
Idea Estiawan On

If you use BaseinputConnection you can override finishComposingText(). That methode will be called when you finish inputting text or when hiding soft keyboard.