I found a solution here 
http://independentlyemployed.co.uk/2011/01/11/intercepting-touch-events-for-swiping/

@Override
public boolean dispatchTouchEvent(MotionEvent event)
{ 
    switch (event.getAction())
    {
        case MotionEvent.ACTION_MOVE:
        { test=true;
            //Potentially start consuming events here as you may
            //have moved to far for a click or scroll
            //Also scroll the screen as necessary
            break;
        }
        case MotionEvent.ACTION_UP:
        { if(test==true)
         {Log.i("GV","Move Released");
         test=false;}
            //Consume if necessary and perform the fling / swipe action
            //if it has been determined to be a fling / swipe
            break;
        }
    }
    return super.dispatchTouchEvent(event);
}

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to