Skip to content Skip to sidebar Skip to footer

Keyboard Disappears While Orientation Change To Landscape Mode

I am enabling orientation change in focusChangeListener of an edittext in my app. It is working fine, but the issue is if the user flips the keyboard to landscape mode keyboard di

Solution 1:

Generally, its a bad idea to mess with the default IME behavior because there are devices out there with hardware keyboards.

Now, that you have been warned, listen for the orientation change and if the keyboard was visible before the change and there is no hardware keyboard on the device, show the keyboard manually.

Solution 2:

Try using android:configChanges="orientation" into your manifest class.

<activityandroid:name=".classname"android:configChanges="keyboardHidden|orientation"

         >

if works then accept it.

Post a Comment for "Keyboard Disappears While Orientation Change To Landscape Mode"