0

I'm very new to Android development and I'm looking for a way to trigger a certain function x when the user has stopped scrolling.. Rather than personally implement a function to compare the value returned by getScrollY() (as suggested by this answer) is there a simpler approach? (like the one provided in the Cocoa Framework for iOS development)

(void)scrollViewDidEndDragging:(UIScrollView *)scrollView willDecelerate:(BOOL)decelerate

This question was answered more than a year ago so I'm thinking if by any chance the present Android API may have, by now, provided developers with a simpler approach to doing it.

Community
  • 1
  • 1

1 Answers1

0

See this post: onPress/onRelease in Android. Just look for ACTION_UP instead of ACTION_DOWN in the example.

Community
  • 1
  • 1
user1676075
  • 3,056
  • 1
  • 19
  • 26