diff options
Diffstat (limited to 'Xamarin.Forms.Platform.Android')
-rw-r--r-- | Xamarin.Forms.Platform.Android/Cells/ViewCellRenderer.cs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Xamarin.Forms.Platform.Android/Cells/ViewCellRenderer.cs b/Xamarin.Forms.Platform.Android/Cells/ViewCellRenderer.cs index 44f2bbbc..46b3321d 100644 --- a/Xamarin.Forms.Platform.Android/Cells/ViewCellRenderer.cs +++ b/Xamarin.Forms.Platform.Android/Cells/ViewCellRenderer.cs @@ -242,7 +242,13 @@ namespace Xamarin.Forms.Platform.Android // LongClick handling from happening. So we need to watch locally for LongPress and if we see it, // trigger the LongClick manually. _watchForLongPress = _viewCell.ContextActions.Count > 0 - && vw.GestureRecognizers.Any(t => t is TapGestureRecognizer); + && HasTapGestureRecognizers(vw); + } + + static bool HasTapGestureRecognizers(View view) + { + return view.GestureRecognizers.Any(t => t is TapGestureRecognizer) + || view.LogicalChildren.OfType<View>().Any(HasTapGestureRecognizers); } void TriggerLongClick() |