tags:

views:

172

answers:

1

Hi! I need to implement HorizontalScrollView which is scrolled to predefined positions (similar to Home behaviour). It works with slow gestures, but does not work with neither flings nor arrow key press.

I hooked to View.onScrollChanged() and it is called when scrolling happened, but I can't determine when scrolling animation ends.

In theory there should be a way to say that fling movement is over. Is there such API?

A: 

I did not find a way to track scroll animation, but it's possible to move scroll logic from HorizontalScrollView class to derived by you, where you can control every aspect of scrolling

Mix