I believe it has to do with the activity you're using to hold these fragments. Within your manifest file, add the following code to your activity to have the screen adjust when the soft-input is shown.
If you are using two activities, make sure both of them have the following:
android:windowSoftInputMode="adjustPan"
<activity
android:name="com.yourapp.MainActivity"
android:label="@string/app_name"
android:windowSoftInputMode="adjustPan" >
</activity>