@Override
    public boolean onTouchEvent(MotionEvent event) {
        clearExtraInformationTextViews();
        scaleDetector.onTouchEvent(event);
        // Check if multitouch action or single touch based on pointer count.
        if(event.getPointerCount() > 1) {
            clearExtraInformationTextViews();
            gestureTypeTV.setText("MULTI TOUCH EVENT");
            textView3.setText("Num Pointers: " + event.getPointerCount());
            int action = MotionEventCompat.getActionMasked(event);
            textView4.setText(actionToString(action));
            int index = MotionEventCompat.getActionIndex(event);
            textView5.setText("Pointer index: " + index);
        }
        else
            gestureDetect.onTouchEvent(event);

        return true;
    }
Activity for testing selendroid touch gestures.

@author colindmurray
@author chooper9
selendroid-test-app/src/main/java/io/selendroid/testapp/TouchGesturesActivity.java