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.

4

1 回答 1

0

请参阅这篇文章: Android 中的 onPress/onRelease。只需在示例中查找 ACTION_UP 而不是 ACTION_DOWN。

于 2013-05-30T12:48:25.783 回答