| Start |
|---|
| Hide keyboard when user taps anywhere else on the screen Add code in your Activity. This would work for Fragment also, no need to add this code in Fragment. |
| Register a callback for keyboard open and close The idea is to measure a layout before and after each change and if there is a significant change you can be somewhat certain that its the softkeyboard. then in our and add the listener don't forget to remove the listener on |
Read Article
https://develop.horje.com/learn/1434/reference