Back to project page texting.
The source code is released under:
Free to use, distribute, do anything.
If you think the Android project texting listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.skk.texting.gesture; // w w w . j av a2 s. co m import android.content.Context; import android.view.GestureDetector; import android.view.MotionEvent; import android.view.View; public class OnSwipeGestureHandler implements SwipeGestureHandler, View.OnTouchListener { private final GestureDetector gestureDetector; public OnSwipeGestureHandler(Context context) { gestureDetector = new GestureDetector(context, new SwipeGestureListener(this)); } @Override public boolean onSwipeLeft() { return false; } @Override public boolean onSwipeRight() { return false; } @Override public boolean onSwipeUp() { return false; } @Override public boolean onSwipeDown() { return false; } @Override public boolean onTouch(View view, MotionEvent motionEvent) { return gestureDetector.onTouchEvent(motionEvent); } }