Get android keyboard height WITHOUT VIEW view?

I have searched and searched and there I cannot find a suitable and working answer on how to get the default keyboard height on Android if you don't resize the view.

My activity should have this: android: windowSoftInputMode = "adjustNothing"

So how do you know the height of the keyboard when it is displayed?

+3


source to share


1 answer


There is really no way to do this, and there is no default height value. One idea is that when you first show the keyboars, measure your height values ​​and change that height with the normal state value. Try to keep this value and use them.



+1


source







All Articles