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

[Android] Fix gestures in Label Spans #14410

Merged
merged 11 commits into from
May 2, 2023
Merged

[Android] Fix gestures in Label Spans #14410

merged 11 commits into from
May 2, 2023

Conversation

jsuarezruiz
Copy link
Contributor

@jsuarezruiz jsuarezruiz commented Apr 5, 2023

Description of Change

Fix gestures in Label Spans on Android.

To test/validate the changes, open the .NET MAUI Gallery and navigate to the Label page. Tap the Span with the text "Click Me". If the Span changes the TextColor, is working as expected.

Issues Fixed

Fixes #4734
Fixes #8004

@jsuarezruiz jsuarezruiz added platform/android 🤖 legacy-area-controls Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor area-controls-label Label, Span area-gestures Gesture types t/bug Something isn't working labels Apr 5, 2023
@rmarinho
Copy link
Member

Can we add a device test for this ?

@jsuarezruiz
Copy link
Contributor Author

Can we add a device test for this ?

Mnn, without a UI Test can validate if the PlatformView contains GestureRecognizers etc but cannot validate exactly the same scenario from the sample.

@hartez hartez mentioned this pull request Apr 19, 2023
4 tasks
Copy link
Member

@mattleibow mattleibow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it possible to add tests? Not sure if there is a way to get the regions in tests, or maybe this is just a wait for UI tests to tap the screen.

Comment on lines -182 to +183
if (View.GestureRecognizers.Count == 0)
if (View.GestureController.CompositeGestureRecognizers.Count == 0)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@PureWeen is this correct?

src/Controls/src/Core/Region.cs Outdated Show resolved Hide resolved
@mattleibow mattleibow merged commit 2c301d7 into main May 2, 2023
@mattleibow mattleibow deleted the fix-4734-droid branch May 2, 2023 22:00
@samhouts samhouts added the backport/suggested The PR author or issue review has suggested that the change should be backported. label Jul 28, 2023
@PureWeen
Copy link
Member

PureWeen commented Aug 2, 2023

Once we have iOS and WinUI merged then we will reassess. Ideally if we backport we would backport all platforms as one backport PR.

@MetalKid
Copy link

MetalKid commented Oct 9, 2023

This appears fixed on Android, but not for iOS?

@JulianPasque
Copy link

JulianPasque commented Oct 25, 2023

This appears fixed on Android, but not for iOS?

This is the iOs related PR #15544

@github-actions github-actions bot locked and limited conversation to collaborators Dec 12, 2023
@Eilon Eilon removed the legacy-area-controls Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor label May 10, 2024
@samhouts samhouts added the fixed-in-8.0.0-preview.5.8529 Look for this fix in 8.0.0-preview.5.8529! label Aug 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-controls-label Label, Span area-gestures Gesture types backport/suggested The PR author or issue review has suggested that the change should be backported. fixed-in-8.0.0-preview.5.8529 Look for this fix in 8.0.0-preview.5.8529! platform/android 🤖 t/bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TapGestureRecognizer does not work in label's span Gestures don't work on Label Spans
9 participants