Search code examples
androidkeyboardonconfigurationchanged

android : How to prevent resizing the window when displaying the virtual keyboard


I am using a tabbed application. There is an EditText my application. When I click on the EditText, the window is getting resized and the virtual keyboard is displaying at the bottom of the window. But the four tabs are displaying at the top of the keyboard.

I do not want to display my tabs, when the keyborad is displaying. Or I do not want to resize my window. My need is just to hide the tabs and other things below the EditText.

I use all options with 'android:windowSoftInputMode' in my manifest. bUT I can not see any differences.

Please give me the solution.

Thank you..


Solution

  • When Virtual keyboard comes, the view is not re-sized but it gets moved. See this blog post to prevent this.


    See also
        Handling keyboard input in Android