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

Horizontal swipe handling over a ListView on Android (Forms)

$
0
0

Hey folks,

I have a Xamarin.Forms view which includes a ListView and a few other elements. I've added a custom renderer for the ContentView my view inherits and added gesture handling there. While it works fine on iOS, on Android it won't - I'm assuming the most effective way of achieving horizontal swipe detection over a list on Android is added the gesture detector to each individual cell renderer.

Is that correct?

If so, IOnTouchListener used with a CellRenderer needs you to implement public IntPtr Handle - where/should should I set the value of that? I'm not entirely sure what is it that it does.


Viewing all articles
Browse latest Browse all 77050

Trending Articles



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