android - NavigationDrawer activity doesn't keep keyboard's state on orientation change -


i created sample project using android studio: create new project -> navigation drawer activity. in testing purposes, content fragmentcontains single edittext widget.

in androidmanifest have line main activity:

android:windowsoftinputmode="stateunchanged|adjustresize" 

odd behavior: if launch app in portrait mode, open soft keyboard (by tapping on edittext) , rotate device landscape mode... keyboard disappears reason. if create same project no navigationdrawer (just activity + fragment) keyboard remains visible (as expected stateunchanged property).

did know reason of such behavior? want keep keyboard expanded after switching landscape mode (if opened in portrait). can track keyboard state , via special flag restore visibility when needed programmatically, know. wonder why native tools don't work navigationdrawer.


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -