android:configChanges="keyboardHidden|orientation" Issue Android
Am using android:configChanges="keyboardHidden|orientation"for switching between portrait and landscape modes. But when user opens softkeyboard in portrait and changes to lan开发者_JAVA技巧dscape keyboard should hide or dissappera but its not happening with that.
If you are intercepting orientation without overriding public void onConfigurationChanged(Configuration newConfig) in your Activity it is normal that the keyboard remains open.
You can either
override this method to reset the display
or avoid intercepting
orientationto let theActivityrestart (in which case yourActivitywill be reinitialized andonCreate()will be called again)
I'm not sure in it but I think that you need to write keyboardHidden|orientation|portrait (or landscape).
加载中,请稍侯......
精彩评论