Adding a TapGestureRocognizer not working on Android
See original GitHub issueDescription
Adding a TapGestureRecognizer to HtmlLabel isn’t picking up taps on Android only. iOS works fine.
Works fine with Label instead of HtmlLabel.
Version
Xamarin.Forms 3.0.0.561731 Xam.Plugin.HtmlLabel 3.0.1.3-beta
<htmlLabel:HtmlLabel
VerticalOptions="CenterAndExpand"
HorizontalTextAlignment="Center"
Margin="50,0,50,0"
Text="Test">
<Label.GestureRecognizers>
<TapGestureRecognizer Command="{Binding Clicked}" />
</Label.GestureRecognizers>
</htmlLabel:HtmlLabel>
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
[Android] TapGestureRecognizer doesn't fire · Issue #5825
TapGestureRecognizer with NumberOfTapsRequired=2, bound to a Command, inside of a ListView/CollectionView does not fire on Android, ...
Read more >TapGestureRecognizer not working on Xamarin.Forms ...
I have the following code in my Xamarin.Forms app... ... This works as expected in iOS but when tested in an Android emulator...
Read more >Maui android TapGestureRecognizer problem issue
Hello all. the problem is in the this section InputTB.Text = "''; not work inside task but work outside task pleas what wrong...
Read more >TapGestureRecognizer doesn't work at first tap
Hello,. My project deals with IOS 10.2 and the app user interface has been created using the interface builder through standard components to...
Read more >TapGestureRecognizer not working in CollectionView
Dear Community! I want to have a TapGestureRecognizer on my Posts on my Accountpage. Therefore i added the GEstureRecognizer.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

For Quick solution, You can use htmllabel within stacklayout, use <StackLayout.GestureRecognizer /> and there you can achieve tap gesture for label
Closed with #80