title: Android Fragment view does not scroll when keyboard is up
body: <p>I am loading a fragment like this </p>
  
  <pre><code>String tag = fragment.getClass().getSimpleName();
  FragmentManager fragmentManager = getFragmentManager();
  FragmentTransaction transaction = fragmentManager.beginTransaction();
  transaction.replace(android.R.id.content, fragment,tag);
  transaction.addToBackStack(tag);
  transaction.commit();
  </code></pre>
  
  <p>The activity has this property set</p>
  
  <pre><code>android:windowSoftInputMode="adjustResize"
  </code></pre>
  
  <p>In my view I have a button at the bottom that I want to keep on top of the keyboard. This is what my fragment layout file looks like</p>
  
  <pre><code>&lt;RelativeLayout xmlns:app="http://schemas.android.com/apk/res-auto"
  android:layout_width="match_parent"
  android:layout_height="wrap_content" &gt;
  
      &lt;ScrollView
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:layout_alignParentTop="true"
      android:fillViewport="true"
      android:isScrollContainer="true"&gt;
  
           &lt;LinearLayout..../&gt;
  
      &lt;/ScrollView&gt;
  
      &lt;Button
      android:id="@+id/activate_button"
    style="@android:style/Widget.DeviceDefault.Light.Button.Borderless.Small"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:layout_alignParentBottom="true" /&gt;
  
   &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>I have an EiditText in this view and when I request focus the soft keyboard appears but view doesn't scroll.</p>
  
  <p>Can anyone tell me why view is not resizing when keyboard is up?</p>