I have a view that can be swiped to another page. It has an onClick listener, which displays a dialog box.
The problem is, swiping triggers both actions (i.e. It shows the next page and the dialog box).
How can I disable the onClick listener when swiping.
It sounds like you want to use a GestureDetector (as well), the SimpleOnGestureListener has onSingleTapConfirmed()
for click events and onFling()
for swipe events.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With