Wednesday, March 14, 2012

Keyboard raising issue when tabview at bottom of Android

There is an issue when placing a edittext in a tabview at bottom. when we tap on edit box the soft keyboard pops up and it move the whole view to upward (means the bottom tab also). When  we want to show the keyboard over the tabs at bottom itself. To solve this issue you may need to adjust the windowSoftInputMode in your manifest. This controls how the screen shifts when the soft keyboard is shown. This page has more info on the various input modes.   We can solve it as follows.


In AndroidManifest.xml


<activity
             android:name="TabActivity" android:windowSoftInputMode="adjustPan" >  
</activity>

3 comments:

  1. This doesn't work. Do you have any other suggestion???

    ReplyDelete
  2. Hi Nancy

    Its works for me. please try with other windowSoftInputModes ?

    ReplyDelete
  3. android:windowSoftInputMode="adjustResize|adjustPan"

    ReplyDelete