AFAIK, Android does not provide an API for checking software keyboard visibility. And the most recommended / used way to check the visibility of the s / w keyboard is listed in How to check the visibility of the soft keyboard on Android? , that is, by measuring the size / height of the application window, if it is significantly smaller than the size of the device, this means that the s / w keyboard is inserted. this works fine in the Android version <= M, with apps taking up the entire screen. But with Android N applications can be in multi-window mode, this method of checking the visibility of the s / w-keyboard will not work.
Any reliable way to check s / w keyboard visibility in multi-window mode?
source
share