Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 89864

ListView GestureRecognizers does not work on Android

$
0
0

Hi,
I have added (through XAML and through Code) the TapGestureRecognizer to a list view in order to perform a command when a listview item is tapped.

This works like a charm on Windows Phone, but on Android it does nothing.

through code...

ResultsListView.GestureRecognizers.Add(new TapGestureRecognizer
            {
                Command = BindingContext.SelectCommand,
                NumberOfTapsRequired = 2
            });

with xaml...

<ListView.GestureRecognizers>
        <TapGestureRecognizer
          Command="{Binding SelectCommand}" NumberOfTapsRequired="2"/>
      </ListView.GestureRecognizers>

Does Android supports TapGestureRecognizer under ListView?

I use Forms 1.3.1.6296


Viewing all articles
Browse latest Browse all 89864

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>