Android how to add swipe Gesture on LinearLayout without onDown true
问题 I'm working on Gesture activity in android I used class to detect the swipe action is public class ActivitySwipeDetector implements View.OnTouchListener { static final String logTag = "ActivitySwipeDetector"; private Activity activity; static final int MIN_DISTANCE = 100; private float downX, downY, upX, upY; public ActivitySwipeDetector(Activity activity){ this.activity = activity; } public void onRightToLeftSwipe(){ Log.i(logTag, "RightToLeftSwipe!"); Toast.makeText(activity,