3

I have a problem, the keyboard is hidden very slow and has a delay to hide (approx 1 second).

I have another application, which uses fragments, normal work, the keyboard is hidden fast.

I have done some tests:

1 - when there is something behind the keyboard (cardview or another control like imageview), it freezes and lag for 1 second before hiding..

2 - when there is nothing behind (empty layout), hide quickly.

I leave two screenshots:

Normal Keyboard

Normal Keyboard

Here, the keyboard is hidden, but look at the screen, is not refreshing !!!

Hidden keyboard

After one second the screen is refreshed correctly and the keyboard is hidden, but why this happens?

thanks !!!

seba123neo
  • 4,688
  • 10
  • 35
  • 53
  • Did you get any solution for this ? – Himanshu Dwivedi Jan 09 '17 at 13:15
  • This is probably related to an old issue I had. I'm not able to reproduce it now but I thought it was because I used too many things on the same fragment (searchview, custom viewpager, etc). [Bhavesh posted an answer which apparently should work](http://stackoverflow.com/a/27038872/2668136), I hope this will help you as well. – Blo Jan 16 '17 at 17:05

1 Answers1

1

Add following line in AndroidManifest.xml

        <activity
        android:name=".YourActivity"
        android:windowSoftInputMode="adjustPan"
        android:label="@string/app_name"
         >