Detect GridView scrolling speed - Android
<p>I have a custom view subclassed from GridView that I use in order to display some custom 3D animation/effect. The way I do this is by overriding <code>dispatchDraw()</code>.</p>

<p>Ideally, I'd want to know the current speed of the scrolling when doing the draw. Currently, I use <code>GestureDetector.OnGestureListener</code> and capture <code>onScroll</code> events and this works very well, except that it doesn't also detect flings as scrolling events.</p>

<p>One idea that comes to mind would be to capture <code>onFling</code> events and then do future processing on my own in order to detect the speed at a later time.</p>

<p>Is there any better way to achieve this? Any simple way to query the current scrolling speed of a GridView?</p>

<p>Thanks.</p>
