I\'m trying to make a swipeable layout so you can swipe it to dismiss like in Google now. I managed to getting it worked on a view such as button using this codes:
S
you should know that if you return false for action_down , you will not get any further actions regarding this touch event
https://developer.android.com/training/gestures/detector#capture-touch-events-for-an-activity-or-view
"Beware of creating a listener that returns false for the ACTION_DOWN event. If you do this, the listener will not be called for the subsequent ACTION_MOVE and ACTION_UP string of events. This is because ACTION_DOWN is the starting point for all touch events."