How to allow part of the layout to resize when soft keyboard opens
<p>I am using TabActivity which extends ActvityGroup and works as the parent of other activities.</p>

<p>Problem:when i click on the editText it opens keyboard and allows the layout to resize.But it also allows the tabHost with 3 tabs to resize with current activity 
<code>so now my screen looks like this : actvity layout ----&gt; bellow that three tabs are there ---&gt; bellow there the opened keyboard stays</code>.Now i dont want the tab to come above the keyboard but i want the other activity to resize.</p>

<p>in short i want three tabs to dont come above the keyboard.</p>

<p>I have already tried adjustPan and adjustResize attributes in manifest but nothing works properly as i want.</p>

<p>this problem is happening in my all activities.</p>

<p>Do anyone have any idea how to resize specific part of layout or how to solve this kind of problems.
Any help will be appreciated.</p>

<p>this is my xml layout file :</p>

<pre><code>&lt;ScrollView
     android:layout_centerInParent="true"
    android:id="@+id/basic_scrollView2"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_below="@+id/scrollView1"
     android:layout_marginTop="20dp"
    android:layout_marginLeft="12dp"
    android:layout_marginRight="12dp" &gt;
&lt;RelativeLayout 

    android:id="@+id/basic_layout_myacc"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:background="@drawable/high_leftrounded_small"&gt;


    &lt;TableLayout 
     android:id="@+id/basic_layout_myacc_table"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"&gt;


        &lt;!-- first row --&gt;
        &lt;TableRow 

            android:layout_width="match_parent"
            android:layout_height="wrap_content"&gt;




             &lt;LinearLayout
                 android:layout_width="match_parent"
                 android:layout_height="wrap_content"
                 android:layout_weight="1" &gt;

                 &lt;TextView
                     android:layout_width="0dp"
                     android:layout_height="wrap_content"
                     android:layout_margin="10dp"
                     android:layout_weight="1"
                     android:text="Employee ID"
                     android:textAppearance="?android:attr/textAppearanceSmall"
                     android:textStyle="bold" /&gt;



                 &lt;EditText
                     android:id="@+id/basic_eID"
                     android:inputType="number|textFilter"
                     android:layout_width="0dp"
                     android:layout_height="wrap_content"
                     android:layout_marginBottom="10dp"
                     android:layout_marginRight="10dp"
                     android:layout_marginTop="10dp"
                     android:layout_weight="1"
                     android:hint="Enter Employee Id"
                     android:scrollHorizontally="true"
                     android:textAppearance="?android:attr/textAppearanceSmall"
                     android:textColor="#C0C0C0"
                     android:background="@null" &gt;
                     &lt;requestFocus /&gt;
                     &lt;/EditText&gt;

             &lt;/LinearLayout&gt;

        &lt;/TableRow&gt;
          &lt;TableRow 
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:background="@drawable/seprator_small"&gt;

        &lt;/TableRow&gt;


        &lt;!-- //2nd --&gt;



         &lt;TableRow 
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"&gt;




             &lt;LinearLayout
                 android:layout_width="match_parent"
                 android:layout_height="wrap_content"
                 android:layout_weight="1" &gt;

                 &lt;TextView
                     android:layout_width="0dp"
                     android:layout_height="wrap_content"
                     android:layout_margin="10dp"
                     android:layout_weight="1"
                     android:text="First Name"
                     android:textAppearance="?android:attr/textAppearanceSmall"
                     android:textStyle="bold" /&gt;



                 &lt;EditText
                     android:id="@+id/basic_fname"
                     android:inputType="textFilter|text"
                     android:layout_width="0dp"
                     android:layout_height="wrap_content"
                     android:layout_marginBottom="10dp"
                     android:layout_marginRight="10dp"
                     android:layout_marginTop="10dp"
                     android:layout_weight="1"
                     android:hint="Enter First Name"
                     android:scrollHorizontally="true"
                     android:textAppearance="?android:attr/textAppearanceSmall"
                     android:textColor="#C0C0C0"
                     android:background="@null" 
                     android:singleLine="true"
                     /&gt;

             &lt;/LinearLayout&gt;

        &lt;/TableRow&gt;
          &lt;TableRow 
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:background="@drawable/seprator_small"&gt;

        &lt;/TableRow&gt;


         &lt;!-- //3rd --&gt;

           &lt;TableRow 
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"&gt;




             &lt;LinearLayout
                 android:layout_width="match_parent"
                 android:layout_height="wrap_content"
                 android:layout_weight="1" &gt;

                 &lt;TextView
                     android:layout_width="0dp"
                     android:layout_height="wrap_content"
                     android:layout_margin="10dp"
                     android:layout_weight="1"
                     android:text="Last Name"
                     android:textAppearance="?android:attr/textAppearanceSmall"
                     android:textStyle="bold" /&gt;



                 &lt;EditText
                     android:id="@+id/basic_lname"
                     android:layout_width="0dp"
                     android:layout_height="wrap_content"
                     android:layout_marginBottom="10dp"
                     android:layout_marginRight="10dp"
                     android:layout_marginTop="10dp"
                     android:layout_weight="1"
                     android:hint="Enter Last Name"
                     android:scrollHorizontally="true"
                     android:textAppearance="?android:attr/textAppearanceSmall"
                     android:textColor="#C0C0C0"
                     android:inputType="textFilter"
                     android:background="@null" /&gt;

             &lt;/LinearLayout&gt;

        &lt;/TableRow&gt;
          &lt;TableRow 
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:background="@drawable/seprator_small"&gt;

        &lt;/TableRow&gt;



           &lt;!-- //fourth --&gt;



           &lt;TableRow 
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"&gt;




             &lt;LinearLayout
                 android:layout_width="match_parent"
                 android:layout_height="wrap_content"
                 android:layout_weight="1" &gt;

                 &lt;TextView
                     android:layout_width="0dp"
                     android:layout_height="wrap_content"
                     android:layout_margin="10dp"
                     android:layout_weight="1"
                     android:text="Title"
                     android:textAppearance="?android:attr/textAppearanceSmall"
                     android:textStyle="bold" /&gt;



                 &lt;EditText
                     android:id="@+id/basic_title"
                     android:layout_width="0dp"
                     android:layout_height="wrap_content"
                     android:layout_marginBottom="10dp"
                     android:layout_marginRight="10dp"
                     android:layout_marginTop="10dp"
                     android:layout_weight="1"
                     android:hint="Enter Title"
                     android:scrollHorizontally="true"
                     android:textAppearance="?android:attr/textAppearanceSmall"
                     android:textColor="#C0C0C0"
                     android:background="@null" 
                     android:inputType="textFilter|text"/&gt;

             &lt;/LinearLayout&gt;

        &lt;/TableRow&gt;
          &lt;TableRow 
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:background="@drawable/seprator_small"&gt;

        &lt;/TableRow&gt;


          &lt;!-- fifth --&gt;



           &lt;TableRow 
            android:id="@+id/basic_row"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"&gt;




             &lt;LinearLayout
                 android:layout_width="match_parent"
                 android:layout_height="wrap_content"
                 android:layout_weight="1" &gt;

                 &lt;TextView
                     android:layout_width="0dp"
                     android:layout_height="wrap_content"
                     android:layout_margin="10dp"
                     android:layout_weight="1"
                     android:text="office"
                     android:textAppearance="?android:attr/textAppearanceSmall"
                     android:textStyle="bold" /&gt;

                &lt;RelativeLayout
                    android:layout_width="0dp"
                    android:layout_height="match_parent"
                    android:layout_weight="1" 
                    android:id="@+id/basic_layout_clickable_office" &gt;         


                 &lt;TextView
                     android:id="@+id/basic_office"
                     android:layout_width="wrap_content"
                     android:layout_height="wrap_content"
                     android:layout_marginBottom="10dp"
                     android:layout_marginRight="10dp"
                     android:layout_marginTop="10dp"
                     android:layout_weight="1"
                     android:hint="Select Office"
                     android:scrollHorizontally="true"
                     android:textAppearance="?android:attr/textAppearanceSmall"
                     android:textColor="@android:color/black" 
                     android:maxLength="10"
                     android:singleLine="true"/&gt;

                  &lt;ImageView 
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:src="@drawable/right_arrow_gray"
                        android:layout_alignRight="@+id/basic_title"
                        android:layout_alignBottom="@+id/basic_office"
                        android:layout_alignParentRight="true"
                        android:layout_marginRight="15dp"
                        /&gt;
                 &lt;/RelativeLayout&gt;

             &lt;/LinearLayout&gt;

        &lt;/TableRow&gt;



    &lt;/TableLayout&gt;


&lt;/RelativeLayout&gt;

&lt;/ScrollView&gt;
</code></pre>
