title: Still my layout not shifting up side.
body: <p>I am trying to shift my layout up when soft keyboard will open.  </p>
  
  <p>I have edittext and button. I can see edittext clearly whether keyboard is open or not but problem is that i am showing drop down for edittext. When drop down open it open on top of edittext because there is no sufficient space between keyboard and dropdown.   </p>
  
  <p>So i am trying to shift my entire screen up (only edittext will show). So can show dropdown below of Edittext.    </p>
  
  <p>I try following things...   </p>
  
  <ol>
  <li><p>I add following attribute in my activity in <code>AndroidManifest.xml</code>     </p>
  
  <p><code>android:windowSoftInputMode="adjustPan"</code></p></li>
  <li><p>I add following code in my <code>.java file</code>    </p></li>
  </ol>
  
  <p><code>getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_PAN)</code>  </p>
  
  <p>I read somewhere i need to use relative layout. I also try this but none of them helpful.   </p>
  
  <p>Here is my xml code for your reference.   </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="match_parent"
  android:layout_height="fill_parent"
  android:background="#EFEFEF"
   &gt;
  
  &lt;ViewStub
      android:id="@+id/vsHeader2"
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
      android:inflatedId="@+id/header"
      android:layout="@layout/copyofheader" /&gt;
  
  
  
          &lt;TextView
              android:id="@+id/firstPara"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:layout_marginTop="56dip"
              android:paddingLeft="12dp"
              android:paddingRight="12dp"
              android:text=""
              android:textSize="16sp" /&gt;
  
          &lt;TextView
              android:id="@+id/secondPara"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:layout_below="@id/firstPara"
              android:layout_marginTop="24dip"
              android:paddingLeft="12dp"
              android:paddingRight="12dp"
              android:text=""
              android:textColor="#666666"
              android:textSize="16sp" /&gt;
  
           &lt;AutoCompleteTextView
              android:id="@+id/mysecondautocomplete"
              android:layout_width="fill_parent"
              android:layout_height="40dip"
              android:layout_below="@id/secondPara"
              android:layout_marginLeft="12dip"
              android:layout_marginRight="12dip"
              android:layout_marginTop="12dip"                
               android:ems="10"
  
               android:dropDownVerticalOffset="44dip"
               android:windowSoftInputMode="stateHidden"
               android:dropDownHeight="290dip"    
                android:imeOptions="actionSearch"
              android:drawableLeft="@drawable/search_grey"
              android:background="@drawable/borderforloginedittext"
              android:drawablePadding="6dip"
              android:hint="Enter Restaurant Name"
              android:inputType="textPersonName"
               android:dropDownWidth="match_parent"
              android:textColor="#cc3333"
              android:textColorHint="#999999"
              android:textSize="16sp" /&gt;
  </code></pre>
  
  <p>   </p>
  
  <p>I don't understand why my layout not shifting up. Please give me any hint or reference.  </p>