Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SwipeToDismiss not working if custom view has click listener set #36

Open
ashub7 opened this issue Aug 14, 2024 · 1 comment
Open

SwipeToDismiss not working if custom view has click listener set #36

ashub7 opened this issue Aug 14, 2024 · 1 comment

Comments

@ashub7
Copy link

ashub7 commented Aug 14, 2024

SwipeToDismiss not working if custom view's Root view has click listener set .. Is there a way we can have both ?

@AviranAbady
Copy link
Owner

@ashub7 OnClickListener will consume the event and will not propagate the event to the parent view.
You can use View.OnTouchListener which will allow you hande the touch/click without consuming the event.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants