I need to add long press and tap gesture recognization in xamarin forms. Successfully added long press effect in xamarin forms but long press gesture is working and tap gesture is not working. how to work both at the same time.
<Image x:Name="img" HeightRequest="100" HorizontalOptions="End" Source="info.png" VerticalOptions="CenterAndExpand" WidthRequest="100"><Image.Effects> <effects:LongPressedEffect /> </Image.Effects> </Image>
`public MainPage()
{
InitializeComponent();
var gesture = new TapGestureRecognizer();
gesture.Tapped += Gesture_Tapped;
img.GestureRecognizers.Add(gesture);
}
private void Gesture_Tapped(object sender, System.EventArgs e)
{
//not working
}`