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 fragment
contains 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
Post a Comment