@@ -0,0 +1,1014 @@
+package victory.sandbox.mytestapp;%0A%0A%0Aimport android.view.MotionEvent;%0Aimport android.view.View;%0A%0Apublic class SwipeDetector implements View.OnTouchListener %7B%0A%0A    public static enum Action %7B%0A        None,%0A    %7D%0A    protected Action isSwipe = Action.None;%0A%0A    // where the down and up action take place%0A    protected float downX, upX, downY, upY;%0A%0A    @Override%0A    public boolean onTouch(View v, MotionEvent event) %7B%0A%0A        int action = event.getAction();%0A%0A        if (action == MotionEvent.ACTION_DOWN) %7B%0A            processActionDownEvent(event);%0A            isSwipe = Action.None;%0A        %7D else if (action == MotionEvent.ACTION_MOVE) %7B%0A            processActionMoveEvent(event);%0A        %7D%0A        return false;%0A    %7D%0A%0A    private void processActionMoveEvent(MotionEvent event)%0A    %7B%0A        /* TODO%0A        upX = event.getX();%0A        upY = event.getY();%0A        */%0A    %7D%0A%0A    private void processActionDownEvent (MotionEvent event)%0A    %7B%0A        downX = event.getX();%0A        downY = event.getY();%0A    %7D%0A%7D%0A

build a swipe detector