0

On a screen I have an EditText and 2 tabs on bottom of the page, when I click inside EditText, the tabs shift upwards as soft keypad opens. How to fix the tab to the bottom of the screen so that they wont move upward when soft keypad is opened. Thanks in advance..!!

Goo
  • 1,318
  • 1
  • 13
  • 31
Vipul J
  • 6,641
  • 9
  • 46
  • 61

2 Answers2

5

In your application's manifest file, In current Activity tag put

android:windowSoftInputMode="adjustPan"
user370305
  • 108,599
  • 23
  • 164
  • 151
  • 2
    +1 And here is More info:[Android windowSoftInputMode – Resize the application for the soft-keyboard](http://www.vogella.com/blog/2010/10/25/android-windowsoftinputmode/) – Paresh Mayani Jul 04 '12 at 12:49
  • More info look at http://developer.android.com/guide/topics/manifest/activity-element.html#wsoft – user370305 Jul 04 '12 at 12:51
1

just put this message

android:windowSoftInputMode="adjustPan"

in your Activity menifeast file.

Community
  • 1
  • 1
Ashok Domadiya
  • 1,124
  • 13
  • 31