检查可见键盘和高度的android与Android:windowSoftInputMode =" adjustNothing" [英] Check visibility and height of the keyboard in android with android:windowSoftInputMode="adjustNothing"

查看:829
本文介绍了检查可见键盘和高度的android与Android:windowSoftInputMode =" adjustNothing"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

现在我用安卓windowSoftInputMode =adjustResize的方式,描述如下:<一href="http://stackoverflow.com/questions/2150078/how-to-check-visibility-of-software-keyboard-in-android">How检查在Android软件键盘的知名度?来检查,如果键盘是可见的,并计算出它的大小。

Now I use android:windowSoftInputMode="adjustResize" and approach, described here: How to check visibility of software keyboard in Android? to check if the keyboard is visible and to calculate it's size.

但现在我想改变的android:windowSoftInputMode为adjustNothing

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

我认为,这种做法是行不通后,这改变。 是否有检查键盘外观/大小的任何其他方式?

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

推荐答案

这可以在实施本帮助的方法:View.fitSystemWindows()

The method that can help in implementing this: View.fitSystemWindows()

这篇关于检查可见键盘和高度的android与Android:windowSoftInputMode =&QUOT; adjustNothing&QUOT;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆