question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Adding a TapGestureRocognizer not working on Android

See original GitHub issue

Description

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:closed
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
MohanaSundharamMurugancommented, Jan 22, 2020

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

0reactions
matteobortolazzocommented, Mar 14, 2020

Closed with #80

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found