I\'ve got a layout with some views, from which one is an EditText. The layout easily fits on one page, BUT, when the soft keyboard is out, the layout doesn\'t scroll. Here\'
In my case I had to Remove the following property from my style to make it work .
<item name="android:windowFullscreen">true</item>
If your First Fragment Scroll perfectly and the second fragment did not scroll then you should use the second fragment replace and do below things
1.Add in ScrollView
android:fillViewport="true"
android:fitsSystemWindows="true"
2.Add in Manifest
android:windowSoftInputMode="adjustResize|stateVisible"
If you add fragment then my suggestion is you need to Replace the Fragment
Try to set ScrollView as your parent layout. It works like charm for me!
Okay, apparently the ScrollView's android:layout_height
mustn't be set to wrap_content
. I set it to match_parent
and set the android:layout_above
to the button on the bottom of the page.
Don't ask me why, but this fixed the issue.
In my case, nothing of the above worked.
I had item name="android:windowTranslucentStatus">true</item>
in my theme. And it was fixed by setting android:fitsSystemWindows="true"
in the parent layout where is my scrollview.