title: Move layout up when soft keyboard is shown
body: <p>I'm trying to adjust the layout when the soft keyboard appears after an edit text gets focus. Right now if I have many edit text and the keyboard appears, the last edit text are hidden and I can't scroll up.</p>
  
  <p>This is how my layout is builded up:</p>
  
  <p>Template:</p>
  
  <pre><code>&lt;LinearLayout&gt;
      &lt;LinearLayout&gt;
          // header 1
      &lt;/LinearLayout&gt;
      &lt;LinearLayout&gt;
          // header 1
      &lt;/LinearLayout&gt;
      &lt;LinearLayout
          android:layout_width="fill_parent"
          android:layout_height="0dip"
          android:layout_weight="1"
          android:orientation="vertical"&gt;
          // where I inflate view_1
      &lt;/LinearLayout&gt;
      &lt;LinearLayout&gt;
          // footer
      &lt;/LinearLayout&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>View (view_1):</p>
  
  <pre><code>&lt;ScrollView
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"&gt;
      &lt;LinearLayout
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:focusable="true"
          android:focusableInTouchMode="true"&gt;
          &lt;LinearLayout&gt;
              // ...
          &lt;/LinearLayout&gt;
          &lt;LinearLayout&gt;
              // ...
          &lt;/LinearLayout&gt;
          &lt;LinearLayout&gt;
              &lt;TextView/&gt;
              &lt;EditText/&gt;
              &lt;TextView/&gt;
              &lt;EditText/&gt;
              &lt;TextView/&gt;
              &lt;EditText/&gt;
              &lt;TextView/&gt;
              &lt;EditText/&gt;
          &lt;/LinearLayout&gt;
      &lt;/LinearLayout&gt;
  &lt;/ScrollView&gt;
  </code></pre>
  
  <p>I already try all kinds of combinations of <code>android:windowSoftInputMode</code> (on manifest.xml and programmatically). I tried to set <code>android:isScrollContainer="false"</code> on the scroll view, but nothing.</p>
  
  <p>I also tried this <a href="https://stackoverflow.com/a/26152562/3050951">answer</a>, putting an GlobalLayoutListener in my scroll view, but the onGlobalLayout is not called when the keyboard appears. And the <code>isKeyboardShown</code> is always false.</p>