Looks like a simple problem, but I cannot find any solution.
My layout hierarchy is also simple:
<RelativeLayout
...>
<LinearLayout
android:id="@id/header"
android:layout_alignParentTop="true"
...>
/>
<RecyclerView
...>
/>
<RelativeLayout
android:id="@id/footer"
android:layout_alignParentBottom="true"
...>
/>
</RelativeLayout>
What happens:
I have an EditText
, which is a child of the footer layout. When it gains focus, the softkeyboard appears and the whole layout is pulled up.
What I want to achieve:
..., the softkeyboard appears and the header will remain at the top, the footer will be pulled above the softkeyboard (just like now), and the only resized view will be the RecyclerView
.
I tried dozens of combinations with windowSoftInputMode
, combining my layout with ScrollView
... but nothing helps.
It must be easy, isnt it?
Edit: the layout is content view of DialogFragment