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
I just used the same SwipeDismissTouchListener
class to implement a swipe gesture on a RelativeLayout
, and at first had the problem of ACTION_MOVE
never getting passed through, or any action other than ACTION_DOWN
.
Found out that the problem is in ACTION_DOWN
returning false
. So just change your case ACTION_DOWN
to return true
, and it will work properly, as that will make other actions also get passed through.