开发者

Android Gallery Widget onScrollStateChanged

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜