开发者

Calculate the Displacement of Scrollview while user scrolling

I'm using GustureListner for a scrollview.

In that I have to calculate how many pixel th开发者_开发百科at scrollview is moved during fling event.

I can get velocity and fling start and end position.


Better to do is extends SimpleOnGestureListener to your OnTouchListener class, so you can override onFling and onScroll.
Refer this GestureDetector.SimpleOnGestureListener

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜