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
GestureRecognizers inhibit CollectionView Selection on Android #6644
Comments
verified repro on android with above project, vs 17.3.0 Preview 1.0 [32426.537.main]. |
still an issue on android with 17.3.0 Preview 2.0 [32507.29.main]. |
We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process. |
Verified this on Visual Studio Enterprise 17.6.0 Preview 4.0. This issue does not repro on Windows 11, but repro on Android emulator (13.0-API 33) with below Project: |
I hope this will get fixed soon, it has been over a year waiting and it is very important to use the CollectionView on Android. I want selection on single tap and navigation on 2 taps. This works easy on Windows but as the Android ignores selection when the GestureRecognizers are used for double tap it is useless. |
I have the same issue on MacCatalyst as well |
Verified this on with VS Version 17.8.5 One bug prevents me from using |
@axa88 So sadly for you mate 😞
Basically the ideia is access the binding context of the entire ContentPage (via AncestorType) on the CollectionView item and call the command from there. That's not a very good code, but it's what is aways working for me.
Hope that helps you. |
@wesleykuhn |
I never did it with DataTemplateSelector, maybe it will work, because it will seek for the parent of the item template view, using its type as criteria. Border has gesture recognizer, you can use it. |
Still having this issue under Android, but works fine in Win. |
Description
In a CollectionView I use click to select an item and have a gesturerecognizer attached so as to be able to do other things in response to the click. A Windows build selects the item then calls the GestureRecognizer, on Android it does not select the item before calling the GestureRecognizer.
Steps to Reproduce
MAUIListEntry-TapGestureRecognizer.zip
Also, the default line spacing seems to be wildly different between Windows and Android.
Version with bug
Release Candidate 2 (current)
Last version that worked well
Unknown/Other
Affected platforms
Android, I was not able test on other platforms
Affected platform versions
Android 11
Did you find any workaround?
No
Relevant log output
No response
The text was updated successfully, but these errors were encountered: