I don’t see how to determine the final position of a scrollview after a flick. At the “ended” phase of the touch event my listener calls getContentPosition() to see how far up or down the content has scrolled. But the value of y is apparently captured at the moment when the scrollview is released, not when it finally coasts to a stop. Is some other event dispatched at the completion of a flick?
The reason I want to know the final position is that when the orientation changes I have to redraw and repopulate the scrollview. I would like use scrollToPosition to put the new scrollview at the same place as before instead of starting over at the top. The content is text, so I’ll have to make some some adjustments for the change in width, but I think that’s doable. First, however, I have to know the last position of the old scrollview, and I can’t see a way to do that. Any ideas?