title: Android: Background image resize on keyboard pop up
body: <p>I am developing an application in which the background image get shrink on keyboard pop-up. My .xml is as follows :</p>
  
  <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:facebook="http://schemas.android.com/apk/res-auto"
      xmlns:tools="http://schemas.android.com/tools"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:background="@drawable/background" &gt;
  
      &lt;ScrollView
          android:layout_width="fill_parent"
          android:layout_height="fill_parent" &gt;
  
          &lt;RelativeLayout
              android:layout_width="fill_parent"
              android:layout_height="wrap_content" &gt;
  
              /**
                Other stuff 
              */
  
          &lt;/RelativeLayout&gt;
      &lt;/ScrollView&gt;
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>I searched on Google and found that, to add</p>
  
  <pre><code>android:windowSoftInputMode="stateVisible|adjustPan"
  </code></pre>
  
  <p>in my manifest file. But its of no use.</p>
  
  <p><strong>Edit :</strong></p>
  
  <p>My Layout before key board pop up looks like :</p>
  
  <p><img src="https://i.stack.imgur.com/38uDa.jpg" alt="Image 1"></p>
  
  <p>And after pop up like:</p>
  
  <p><img src="https://i.stack.imgur.com/7EBd8.jpg" alt="Image 2"></p>
  
  <p>Please check the difference in background image. In image 1 image is in size and in image 2 background image shrink-ed. I need the footer and background get shift upward on keyboard popup.</p>
  
  <p>What I am missing or doing wrong please suggest me.</p>