title: Software keyboard resizes background image on Android
body: <p>Whenever the software keyboard appears, it resizes the background image. Refer to the screenshot below:</p>
  
  <p><img src="https://i.stack.imgur.com/wXU2h.jpg" alt=""></p>
  
  <p>As you can see, the background is sort of squeezed. Anyone can shed a light on why the background resizes?</p>
  
  <p>My Layout is as follows:</p>
  
  <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:orientation="vertical"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:background="@drawable/page_bg"
      android:isScrollContainer="false"
  &gt;
      &lt;LinearLayout android:layout_height="wrap_content"
          android:orientation="horizontal"
          android:layout_width="fill_parent"
      &gt;
          &lt;EditText android:id="@+id/CatName"
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              android:layout_weight="1"
              android:inputType="textCapSentences"
              android:lines="1"
          /&gt;
          &lt;Button android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:text="@string/save"
              android:onClick="saveCat"
          /&gt;
      &lt;/LinearLayout&gt;
      &lt;ImageButton
          android:id="@+id/add_totalk"
          android:layout_height="wrap_content"
          android:layout_width="wrap_content"
          android:background="@null"
          android:src="@drawable/add_small"
          android:scaleType="center"
          android:onClick="createToTalk"
          android:layout_marginTop="5dp"
      /&gt;
  &lt;/LinearLayout&gt;
  </code></pre>