how to avoid main window layout being scrolled when soft keyboard is opened?
<p>I have a main activity which has RelativeLaoyout @ root and many other views including a GridView with 2 columns.
Now, clicking on one of the buttons opens a dialog which has an EditText in it.
When user taps in the EditText the whole RelativeLayout of the main activity is pushed upwards.</p>

<p>I have tried almost all of the solutions I could find on stackoverflow and various other forums but none has worked for me!</p>

<p>Things I have tried so far:</p>

<p>1) Set android:windowSoftInputMode="adjustResize"
   I also tried adjustNothing and adjustPan but nothing worked</p>

<p>2) Set android:isScrollContainer="false" for the GridView
   I also tried setting it to true. But that didn't help either.</p>

<p>This issue is really bugging me very bad. Please someone help!</p>

<p>-Yogesh</p>

<p><strong>EDIT</strong>
Found a duplicate but that too is un-answered!
<a href="http://stackoverflow.com/questions/3783318/background-layout-moving-when-soft-keyboard-displayed-android">background layout moving when soft keyboard displayed - android</a></p>
