title: Activity with fragments does not resize when the keyboard opens
body: <p>In my main activity there is a <code>RelativeLayout</code> that has 2 childs:</p>
  <ul>
  <li>An <code>ImageView</code> which serves as the background</li>
  <li>A <code>LinearLayout</code> that has 2 fragment containers</li>
  </ul>
  <h1>activity_main.xml</h1>
  <pre><code>&lt;RelativeLayout xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
      xmlns:tools=&quot;http://schemas.android.com/tools&quot;
      android:layout_width=&quot;match_parent&quot;
      android:layout_height=&quot;match_parent&quot;
      android:layout_gravity=&quot;bottom&quot;
      tools:context=&quot;${packageName}.${activityClass}&quot;&gt;
  
      &lt;ImageView
          android:layout_width=&quot;match_parent&quot;
          android:layout_height=&quot;match_parent&quot;
          android:adjustViewBounds=&quot;true&quot;
          android:baselineAlignBottom=&quot;false&quot;
          android:scaleType=&quot;fitStart&quot;
          android:src=&quot;@drawable/bg_image&quot; /&gt;
  
      &lt;LinearLayout
          android:layout_width=&quot;match_parent&quot;
          android:layout_height=&quot;match_parent&quot;
          android:orientation=&quot;vertical&quot;
          android:paddingTop=&quot;?android:attr/actionBarSize&quot;
          android:layout_alignParentBottom=&quot;true&quot;&gt;
  
          &lt;LinearLayout
              android:id=&quot;@+id/ContainerA&quot;
              android:layout_width=&quot;match_parent&quot;
              android:layout_height=&quot;wrap_content&quot;
              android:layout_gravity=&quot;center&quot;
              android:orientation=&quot;vertical&quot; /&gt;
          
          &lt;LinearLayout
              android:id=&quot;@+id/ContainerB&quot;
              android:layout_width=&quot;match_parent&quot;
              android:layout_height=&quot;match_parent&quot;
              android:background=&quot;@color/background_gray&quot;
              android:orientation=&quot;vertical&quot; /&gt;
  
      &lt;/LinearLayout&gt;
  &lt;/RelativeLayout&gt;
  </code></pre>
  <p>Container A simply shows a fragment that doesn't change.<br />
  However, Container B holds a fragment that does change depending on user clicks.</p>
  <p>Container B changes in 2 ways:</p>
  <ul>
  <li>It can expand (from a height of about 70% to full height).</li>
  <li>It changes fragments.</li>
  </ul>
  <p>One of the fragments Container B can hold is a form, which contains <code>EditText</code>s and other views.</p>
  <p>My problem is that I can't get the activity to resize when the keyboard is open.<br />
  I set <code>adjustResize</code> in the manifest file and my theme is not a fullscreen theme (it is apparently a cause for this problem). I also tried to edit the views, add <code>ScrollViews</code> but absolutely nothing worked.</p>
  <p>The theme I'm using for this activity is the light theme with the dark actionbar from the <code>AppCompat</code> library. I only edited the theme to allow an overlay actionbar. This is <strong>not</strong> the problem as I've already tried removing those edits to no avail.</p>
  <p><strong><a href="http://pastebin.com/wvkm57wP" rel="noreferrer">Here's a link to the form layout</a></strong></p>
  <p><strong>TL;DR</strong> <code>adjustResize</code> / <code>adjustPan</code> do not work for me. Searched, tried various solutions, nothing worked. My question is; what is the cause for this in my case?</p>
  <h1>Update: AndroidManifest.xml</h1>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
  &lt;manifest xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot; ...&gt;
  
      &lt;uses-sdk android:minSdkVersion=&quot;11&quot; android:targetSdkVersion=&quot;19&quot; /&gt;
  
      &lt;application ... android:theme=&quot;@style/AppTheme&quot;&gt;
          &lt;activity android:name=&quot;.SplashScreenActivity&quot;
              android:label=&quot;@string/app_name&quot;
              android:screenOrientation=&quot;portrait&quot;
              android:theme=&quot;@android:style/Theme.Black.NoTitleBar&quot;&gt;
              &lt;intent-filter&gt;
                  &lt;action android:name=&quot;android.intent.action.MAIN&quot; /&gt;
  
                  &lt;category android:name=&quot;android.intent.category.LAUNCHER&quot; /&gt;
              &lt;/intent-filter&gt;
          &lt;/activity&gt;
          &lt;activity android:name=&quot;.MainActivity&quot;
              android:configChanges=&quot;keyboardHidden|screenSize&quot; android:label=&quot;@string/app_name&quot;
              android:screenOrientation=&quot;portrait&quot; android:theme=&quot;@style/OverlayActionBarTheme&quot;
              android:windowSoftInputMode=&quot;adjustResize&quot;  /&gt;
          &lt;activity android:name=&quot;.SettingsActivity&quot;
              android:label=&quot;@string/title_activity_settings&quot;
              android:parentActivityName=&quot;.MainActivity&quot;
              android:windowSoftInputMode=&quot;adjustResize&quot;&gt;
              &lt;meta-data android:name=&quot;android.support.PARENT_ACTIVITY&quot;
                  android:value=&quot;.MainActivity&quot; /&gt;
          &lt;/activity&gt;
      &lt;/application&gt;
  
  &lt;/manifest&gt;
  </code></pre>
  <p><strong>Update 2:</strong><br />
  I created a completely new app, added my form layout as the main layout, and tested whether the problem was in the layout itself. Turns out it is, as even on this newly created app it doesn't seem to resize.</p>
  <p>As stated above, the link to the layout can be found <strong><a href="http://pastebin.com/wvkm57wP" rel="noreferrer">Here</a></strong></p>
  <p><strong>Update 3:</strong>
  I managed to make it work on the new application by surrounding the whole layout with a <code>ScrollView</code>. I couldn't replicate the same effect in the original app for some reason... still trying to figure out why.</p>