Keyboard dismissed on rotation to landscape mode Android

∥☆過路亽.° 提交于 2019-12-01 06:27:12

问题


Running into a strange problem.

When I'm on portrait and have the keyboard visible and rotate to landscape, the keyboard is dismissed (with or without text in the EditText). The text is also retained on rotation.

When I'm on landscape and have the keyboard visible and rotate to portrait, the keyboard continues to be visible on portrait.

Any idea what could be going wrong? I'm not handling configChanges myself and I don't intend to.

I also tried using stateUnchanged | adjustResize in the XML and that did not change anything.

来源:https://stackoverflow.com/questions/39173171/keyboard-dismissed-on-rotation-to-landscape-mode-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!