Okay I have been referencing the code here: Fling gesture detection on grid layout
but just can not get it to work. In my main activity I have a simple image define
Try to read: http://illusionsandroid.blogspot.com/2011/05/adding-fling-gesture-listener-to-view.html
It allow you to separate your activity implementation from your custom listener. It is simply a refactoring of the solution reported by Alex Orlov