不使用AndroidBug5497Workaround,而是另外创建一个透明零宽度的popwindow来获取软键盘高度,结合adjustNothing可以更方便地定制自己的界面
参见:https://github.com/siebeprojects/samples-keyboardheight
以及https://stackoverflow.com/questions/16788959/is-there-any-way-in-android-to-get-the-height-of-virtual-keyboard-of-device
下,Siebe Brouwer 的回答。
详细内容 可以参见https://www.jianshu.com/p/1c879bb52c5c
demo参考 https://github.com/demongel/SoftKeyboardHeight