I have an activity configured as follows in the manifest:
android:windowSoftInputMode="stateHidden|adjustPan"
This activity creates a fragment. The fragment configures itself to be full-screen in onCreate(), e.g.:
setStyle(DialogFragment.STYLE_NO_FRAME, android.R.style.Theme);
The fragment's layout is roughly this:
<LinearLayout>
<!-- a fixed height header -->
<ScrollView
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1.0">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<!-- some EditTexts -->
</LinearLayout>
</ScrollView>
<!-- a fixed height footer -->
</LinearLayout>
Unfortunately, when the fragment is displayed the soft keyboard is automatically shown and input mode is "adjustResize" instead of "adjustPan". This causes the footer to always be visible; when the keyboard is shown the ScrollView just shrinks in height.
How can I configure the fragment to have the "stateHidden|adjustPan" behavior? I'm getting the fragment functionality from the support library, if that matters.