Android Question How to make scrollview "window" smaller?

JohnC

Expert
Licensed User
Longtime User
From what I understand, the scrollview control allows a larger "panel" to be "embedded" in it which will allow the user to scroll up or down to "see" all of the contents of the larger "embedded" panel though the embedded panel is taller then the device's display height.

But when the keyboard pops-up, it seems the "scrollview" size stays the same, so the popped-up keyboard ends up covering the bottom of the embedded panel - so no matter how much you try to scroll down, you will never see the bottom of the embedded panel because the keyboard is covering it up.

So, how can I make it so when the keyboard is visible, the scrollview's "window" reduces in size so the bottom of the scrollview window is right above the top of the keyboard so that the user will then be able to scroll down and see the bottom of the embedded panel and not have the keyboard hide it?

Any help would be greatly appreciated!
 

RandomCoder

Well-Known Member
Licensed User
Longtime User
Here's a working example.. Keyboard interfering with Customlistview
It took some searching to find and is actually using a CustomListView but should work just the same. In fact you might find switching to the CustomListView an advantage because it is much more customisable.
 
Upvote 0
Top