It seems like it's quite an old issue, but it's still not solved and I can't get a Scrollview with EditTexts scrolling reliably when the Keyboard opens.
Attached is a small demo project with the current best workaround:
After resizing the ScrollViews inner Panel, you need to "requestLayout" + Sleep, but this is also not reliable and adds an unnecessary delay of a random length.
I think the main problem is that we don't know when the resizing of the inner Panel has actually finished, so that we can scroll after that.
Some stackoverflow answers suggests that you need to wait for the "onGlobalLayout" event and scroll only after that, which seems to make sense.
stackoverflow.com
stackoverflow.com
www.b4x.com
@Erel, Could you look at it and implement maybe a panel resize + scroll function that waits for the resize to finish?
Attached is a small demo project with the current best workaround:
After resizing the ScrollViews inner Panel, you need to "requestLayout" + Sleep, but this is also not reliable and adds an unnecessary delay of a random length.
I think the main problem is that we don't know when the resizing of the inner Panel has actually finished, so that we can scroll after that.
Some stackoverflow answers suggests that you need to wait for the "onGlobalLayout" event and scroll only after that, which seems to make sense.
How to scroll to top of long ScrollView layout?
For part of my app, the user is presented with a list of names and is asked to group them as they see fit. (Note, the ListView code was copied verbatim from the Android Views tutorial. I haven't...
ScrollView .scrollTo not working? Saving ScrollView position on rotation
Ok.. I must be overlooking something real simple here, but i think i'm trying to do something fairly basic.. Simply retain the scrollbar position of a ScrollView on orientation change... Here is ...
IDE and View wishes/bugs
In tooltips for items like Textsize, show what the default value is. I know being new to this stuff and just finished reading the 450+ pages of manuals and looking over most of the forum there wasn't much about it in the documentation other then them not needing dip and sizing correct on their...
@Erel, Could you look at it and implement maybe a panel resize + scroll function that waits for the resize to finish?