[Android] Fix SwipeGestureRecognizer not firing on CollectionView/ListView #32928
+132
−3
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
ShouldRecognizeSimultaneously = true)Original prompt
This section details on the original issue you should resolve
<issue_title>SwipeGesture is not working on a listview/CollectionView</issue_title>
<issue_description>### Description
Related to #8895 I still have the issue for more than 1 year where
SwipeGestureis not working on a listview. My goal is that a user can swipe to the left and the swipe event should be raised. But I can swipe as many times as I want, nothing happens. The swipe event is never raised.Steps to Reproduce
Link to public reproduction project repository
Yes
Version with bug
7.0.49 (Edit: 01/02/2024 still bugged)
Last version that worked well
Unknown/Other
Affected platforms
Android
Affected platform versions
Pixel 5 - API 31
Did you find any workaround?
No response
Relevant log output
No response</issue_description>
Comments on the Issue (you are @copilot in this section)
@ We've added this issue to our backlog, and we will work to address it as time and resources allow. If you have any additional information or questions about this issue, please leave a comment. For additional info about issue management, please read our [Triage Process](https://github.com/dotnet/maui/blob/main/docs/TriageProcess.md). @ Same issue with **any scrollable** view like `CollectionView`. See below Screencast and according sample code [here](https://github.com/ericbrunner/TaskyApp.Maui.SingleProject/commit/47e50bf82d353318b9da1ddef6c53318c6d7c367) Related to: #7403
@ @GitOguz You confuse `SwipeView` with [SwipeGestureRecognizer](https://learn.microsoft.com/en-us/dotnet/maui/fundamentals/gestures/swipe#create-a-swipegesturerecognizer) which are different things! @ Hi @Symbai. We have added the "s/try-latest-version" label to this issue, which indicates that we'd like you to try and reproduce this issue on the latest available public version. This can happen because we think that this issue was fixed in a version that has just been released, or the information provided by you indicates that you might be working with an older version.You can install the latest version by installing the latest Visual Studio (Preview) with the .NET MAUI workload installed. If the issue still persists, please let us know with any additional details and ideally a reproduction project provided through a GitHub repository.
This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.</comment_new>
<comment_new>@
Hi @Symbai. We have added the "s/try-latest-version" label to this issue, which indicates that we'd like you to try and reproduce this issue on the latest available public version. This can happen because we think that this issue was fixed in a version that has just been released, or the information provided by you indicates that you might be working with an older version.
You can install the latest version by installing the latest Visual Studio (Preview) with the .NET MAUI workload...
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.