title: Android adjustpan not working after the first time
body: <p>My problem: starting from the second time the software keyboard is shown on the screen, it entirely hides my EditText. </p>
  
  <p>Attribute android:windowSoftInputMode="adjustPan" has been specified in the  AndroidManifest.xml, but it works only the first time.</p>
  
  <p>I have the following layout:</p>
  
  <pre><code> &lt;?xml version="1.0" encoding="utf-8"?&gt;
      &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:tools="http://schemas.android.com/tools"
      android:layout_width="match_parent"
      android:layout_height="fill_parent"
      android:orientation="vertical" &gt;
  
      &lt;LinearLayout
          android:layout_width="match_parent"
          android:layout_height="464dp"
          android:gravity="top"
          android:orientation="vertical"
          android:paddingLeft="16dp"
          android:paddingRight="16dp" &gt;
  
          &lt;ListView
              android:id="@+id/list"
              android:layout_width="match_parent"
              android:layout_height="0dp"
              android:layout_weight="10"
              android:background="#E3E3E2"
              android:gravity="top" /&gt;
  
          &lt;LinearLayout
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:orientation="horizontal" &gt;
  
              &lt;EditText
                  android:id="@+id/addListText"
                  android:layout_width="0dp"
                  android:layout_height="48dp"
                  android:layout_weight="10"
                  android:contentDescription="@string/addItemContentDescription"
                  android:gravity="bottom|center_horizontal"
                  android:inputType="textLongMessage"
                  android:textColor="#E3E3E2"
                  android:visibility="gone" /&gt;
  
              &lt;ImageButton
                  android:id="@+id/addTextListButton"
                  android:layout_width="0dp"
                  android:layout_height="48dp"
                  android:layout_weight="1"
                  android:layout_gravity="right"
                  android:background="@android:color/transparent"
                  android:contentDescription="@string/addItemButton"
                  android:scaleType="fitCenter"
                  android:src="@drawable/plus_add"
                  android:visibility="gone" /&gt;
          &lt;/LinearLayout&gt;
      &lt;/LinearLayout&gt;
  
      &lt;LinearLayout
          android:layout_width="match_parent"
          android:layout_height="fill_parent"
          android:gravity="bottom|center_horizontal"
          android:orientation="horizontal"
          android:paddingLeft="16dp"
          android:paddingRight="16dp" &gt;
  
          &lt;ImageButton
              android:id="@+id/syncListsButton"
              android:layout_width="64dp"
              android:layout_height="match_parent"
              android:src="@android:drawable/ic_popup_sync" /&gt;
  
          &lt;ImageButton
              android:id="@+id/showOrHide"
              android:layout_width="64dp"
              android:layout_height="match_parent" /&gt;
  
          &lt;ImageButton
              android:id="@+id/delListButton"
              android:layout_width="64dp"
              android:layout_height="match_parent"
              android:src="@android:drawable/ic_menu_delete" /&gt;
      &lt;/LinearLayout&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>The "showOrHide" button shows/hides the "addListText"/"addTextListButton" combo.</p>
  
  <p>When the EditText is shown for the first time and I touch it, the soft keyboard appears on the screen and the "addListText"/"addTextListButton" combo is panned correctly. When I hide the keyboard and then show it again, the keyboard covers completely my addListText editbox!</p>
  
  <p>Any idea on what's going on? I'm testing it on Android 4.2.2.</p>
  
  <p>Please help! Thanks :-)</p>
  
  <p><strong>edit:</strong> I've also tried to put the first LinearLayout inside a ScrollView but it doesn't work!</p>