简体   繁体   English

使用android检查android中键盘的可见性和高度:windowSoftInputMode =“adjustNothing”

[英]Check visibility and height of the keyboard in android with android:windowSoftInputMode=“adjustNothing”

Now I use android:windowSoftInputMode="adjustResize" and approach, described here: How to check visibility of software keyboard in Android? 现在我使用android:windowSoftInputMode =“adjustResize”和方法,这里描述: 如何检查Android中软件键盘的可见性? to check if the keyboard is visible and to calculate it's size. 检查键盘是否可见并计算其大小。

But now I want to change android:windowSoftInputMode to "adjustNothing". 但现在我想将android:windowSoftInputMode改为“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()

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 反应本机键盘事件不适用于android:windowSoftInputMode =“ adjustNothing” - React Native keyboard events not working with android:windowSoftInputMode=“adjustNothing” android:windowSoftInputMode =“ livejust”中的“ adjustNothing”等效项 - android:windowSoftInputMode=“adjustNothing” equivalent in livecode Android键盘 - android:windowSoftInputMode =“adjustPan” - Android Keyboard - android:windowSoftInputMode=“adjustPan” android键盘无法调整/平移android:windowSoftInputMode = - android keyboard not adjust/pan working android:windowSoftInputMode= 如何在 Android 中检查软件键盘的可见性? - How to check visibility of software keyboard in Android? 不断“检查” Android片段可见性/键盘可见性的最佳方法 - Best way to constantly “check” fragment visibility/keyboard visibility in android android软件键盘的可见性 - android visibility of software keyboard Android软键盘隐藏带有windowSoftInputMode设置的编辑文本字段 - Android soft keyboard hides edit text field with windowSoftInputMode set android scrollview无法正常工作windowSoftInputMode - android scrollview not working windowSoftInputMode android-windowSoftInputMode问题 - android - windowSoftInputMode issue
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM