I would like to achieve a "snap" effect on an Android ListView. Specifically, when the ListView stops scrolling I would like it to stop at certain positions so that the first visible item is completely shown. To do that, I need to be able to estimate the final position that the ListView will stop at when the user stops dragging or flinging.
In the case of dragging, when we receive the ACTION_UP or ACTION_CANCEL event, I can simply read off the current Y offset as the final position.
In the case of flinging, however, when we receive the ACTION_UP or ACTION_CANCEL event, I will need some extra information to determine the final position that the ListView will stop scrolling at because of the deceleration period.
iOS provides such information through the targetContentOffset parameter in willEndDragging. Is there any equivalent information available in Android?
This is related to another question I asked but got no response: In Android, how to achieve snap effect on a listview while respecting acceleration caused by fling?