I'm using a ScrollView in android and where the visible portion of the view is the same size as one of the cells inside the scrollview. Every "cell" is the same height. So what I am trying to do is snap into position after the scroll view has been scrolled.
Currently I am detecting when the user has touched the scroll view and when they've started scrolling and working it out from there, but it is quite buggy. It also needs to work when the user just flicks it and it scrolls and then decelerates.
On iPhone there is a function that is something like "didDecelerate" and in there I can do any code I want to happen when the scroll view has finished scrolling. Is there such a thing with Android? Or is there some code I could look at to figure out a better way of doing it?
I've looked over the Android docs and could not find anything like that.
Thanks!