andreea andreea - 5 months ago 37
Android Question

How do I Detect if Software Keyboard is Visible on Android Device?

Is there a way in Android to detect if the software (a.k.a. "soft") keyboard is visible on screen?


There is no direct way - see where Dianne Hackborn from the Android team has replied. However, you can detect it indirectly by checking if the window size changed in #onMeasure. See Android: Is software keyboard shown?.