title: Forcing adjustPan in activity containing ScrollView
body: <p>My layout looks like this:</p>
  
  <pre><code>&lt;RelativeLayout&gt;
      &lt;RelativeLayout&gt;
      &lt;/RelativeLayout&gt;
      &lt;ViewFlipper&gt;
          &lt;ScrollView&gt;
              &lt;LinearLayout&gt;
                  &lt;EditText /&gt;
              &lt;/LinearLayout&gt;
          &lt;/ScrollView&gt;
      &lt;/ViewFlipper&gt;
      &lt;RelativeLayout&gt;
      &lt;/RelativeLayout&gt;
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>When focused on the EditText in the middle, the soft keyboard pops up as expected, However it always resizes the layout even though I have <code>android:windowSoftInputMode="adjustPan"</code> in the manifest.</p>
  
  <p>The problem with resizing is that only the ScrollView shrinks, leaving the RelativeLayouts above and below it intact, which can almost completely obscure the EditText.</p>
  
  <p>I've tried hiding the RelativeLayouts when the keyboard is shown (that's another sad story), but adjustPan sounds more suitable. However it has no effect on this activity.</p>
  
  <p>How can I force adjustPan to work despite the presence of the ScrollView?</p>
  
  <p><strong>Update:</strong></p>
  
  <p>SO won't let me answer my own question, but the solution is setting <code>android:isScrollContainer="false"</code> on the ScrollView.</p>