Tuesday, 11 May 2021

Is there a way to scroll behind the keyboard on Android?

I have a screen with view that get affected when the soft keyboard appears, the entire white portion is in a ScrollView:

enter image description here

When I set the windowSoftInputMode to adjustPan in the manifest, the keyboard covers the save button, which can't be pressed until the keyboard is collapsed:

enter image description here

If I set it to adjustResize, the the views are all raised to overlap each other: enter image description here

In neither case does the screen scroll. What I would like is for all of the views to remain in their original positions, but allow the user to scroll to the bottom behind the keyboard, until the bottom of the screen below the save button is adjacent to the top of the open keyboard. Is this possible?



from Is there a way to scroll behind the keyboard on Android?

No comments:

Post a Comment