How can i set the 开发者_如何学编程onScrollStateChanged
method for the Android Gallery Widget?
I would like to do something if the scrolling is finished.
I couldn't find exactly what you are looking for, but I would try using Gallery
's onScroll method:
public boolean onScroll
(MotionEvent e1, MotionEvent e2, float distanceX, float distanceY)
The last onScroll
call, e2.getAction(
) should be equal to MotionEvent.ACTION_UP
精彩评论