未调用 onConfigurationChange()
我发现在我的应用程序中,未调用 onConfigurationChange() 。在清单中我输入:
android:configChanges="keyboardHidden"
我希望当键盘隐藏时,调用 onConfigurationChange() 。为什么不叫它?
当我强制隐藏键盘时,该方法没有被调用?
I found that in my app , onConfigurationChange() is not call. In manifest I put :
android:configChanges="keyboardHidden"
I want that when the keyboard is hide, onConfigurationChange() to be called. Why it is not called?
The method is not called when I force keyboard to be hide?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
嘿,我和你有同样的问题。我不知道它是否有效,但我认为值得一试。我只是将
android:configChanges="orientation|keyboardhidden"
放入我在AndroidManifest.xml
中声明的所有活动中,所以我有这样的东西:我尝试切换断点在方法内部并且它有效,所以你可能也想尝试一下,你永远不知道!
抱歉,如果这没有帮助!
Hey i had the same problem as you. I don't know if it will work but i think it's worth a try. I just put
android:configChanges="orientation|keyboardhidden"
in all my activities i had declared in myAndroidManifest.xml
so i had something like this :I tried toggling a breakpoint inside the method and it worked so you might want to try that as well, you never know!
Sorry if this doesn't help!
这个问题已被问过很多次,常见的答案是:
从此页面
This question has been asked many times, a common answer is:
From This Page