Check the visibility and height of the keyboard in Android with android: windowSoftInputMode = "adjustNothing"

Now I use android: windowSoftInputMode = "adjustResize" and the approach described here: How to check the visibility of the soft keyboard on Android? to check if the keyboard is visible and calculate its size.

But now I want to change android: windowSoftInputMode for "adjustNothing".

I think this approach will not work after this changes. Is there any other way to check the appearance / size of the keyboard?

+4
source share
1 answer

A method that can help implement this: View.fitSystemWindows ()

+2
source

All Articles