开发者

Android Gallery Widget onScrollStateChanged

开发者 https://www.devze.com 2023-01-13 19:28 出处:网络
How can i set the 开发者_如何学编程onScrollStateChanged method for the Android Gallery Widget?

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

0

精彩评论

暂无评论...
验证码 换一张
取 消