I recommend you to choose a different approach and increase the inner panel height so it will include the extra length for the keyboard. This way you will never need to resize the panel.
I am actually increasing the inner panel height!
Please check the above project in which I have isolated the issue.
The problem is that even after resizing the inner panel, it's not possible to scroll to the bottom of the scrollview until that resize has actually happened.
And because we don't know when that is, there's a need for a random amount of sleep.
Just to make sure, I have also tested the
CLV keyboard handling example and it also can't scroll to the bottom item after resizing.
Attached a modified CLV example as well:
- If you click the edittext, the CLV will try to scroll to the bottom element - it doesn't work
- If you click the button, it adds a new CLV item and tries to scroll to it - it doesn't work
I still think "extending a scrollview and then scrolling to the bottom" or in CLV terms "adding an item and scrolling to it" should be handled by the core libraries and considered a bug, but if not, then I can go with the JavaObject route.