I need to do a very simple thing - find out if the software keyboard is shown. Is this possible in Android?
Checking the height of elements is not reliable because some keyboards like WifiKeyboard have zero height.
Instead, you can use the callback result of showSoftInput() and hideSoftInput() to check for the status of the keyboard. Full details and example code at
https://rogerkeays.com/how-to-check-if-the-software-keyboard-is-shown-in-android