title: Difference between adjustResize and adjustPan in android?
body: <p>I tried to write a code which is used to re-size the UI components when <strong>soft-keyboard</strong> appears. 
  When I use <strong>adjustResize,</strong> it res-size the UI components and at the same time <strong>adjustPan</strong> gave me same output. 
  I want to know the difference between them and when to use each component? Which one(adjustPan or adjustResize) is good for resizing UI? </p>
  
  <p>Here is my xml: </p>
  
  <pre><code>&lt;ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:fillViewport="true" &gt;
  
      &lt;RelativeLayout
          android:layout_width="fill_parent"
          android:layout_height="wrap_content" &gt;
  
          &lt;LinearLayout
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              android:layout_alignParentBottom="true"
              android:orientation="vertical" &gt;
  
              &lt;EditText
                  android:id="@+id/editText5"
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:layout_marginTop="45dp"
                  android:ems="10"
                  android:inputType="textPersonName" /&gt;
  
              &lt;Button
                  android:id="@+id/button1"
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:layout_marginBottom="40dp"
                  android:text="My Button" /&gt;
          &lt;/LinearLayout&gt;
      &lt;/RelativeLayout&gt;
  
  &lt;/ScrollView&gt;
  </code></pre>
  
  <p>and the menifest file: </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="com.example.adjustscroll"
      android:versionCode="1"
      android:versionName="1.0" &gt;
  
      &lt;uses-sdk
          android:minSdkVersion="8"
          android:targetSdkVersion="17" /&gt;
  
      &lt;application
          android:allowBackup="true"
          android:icon="@drawable/ic_launcher"
          android:label="@string/app_name"
          android:theme="@style/AppTheme" &gt;
          &lt;activity
              android:name="com.example.adjustscroll.MainActivity"
              android:label="@string/app_name"
              android:windowSoftInputMode="adjustPan|adjustResize" &gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="android.intent.action.MAIN" /&gt;
  
                  &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
              &lt;/intent-filter&gt;
          &lt;/activity&gt;
      &lt;/application&gt;
  
  &lt;/manifest&gt;
  </code></pre>