Skip to content Skip to sidebar Skip to footer

Android: Softkeyboard Not Shown After Return To Activity, Layout Remains Panned

My activity is panned in order to make space for soft keyboard(keyboard is visible). When I leave activity in this state by pressing home button, after return to this activity, lay

Solution 1:

So there must be some problem with fullscreen activities. When I change my activity from fullscreen to for example NoTitleBar, everything works fine.

When using fullscreen activities, the goal is to force redraw/remeasure screen in onRestart method. For this issue with fullscreen activities, I found workaround here

Solution 2:

You can try this piece of code when you want to show the keyboard :

((InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE))
.showSoftInput(myEditText, InputMethodManager.SHOW_FORCED);

Post a Comment for "Android: Softkeyboard Not Shown After Return To Activity, Layout Remains Panned"