We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to handle the button event when ItemTapped event is triggered in SfListView for Android platform?

SfListView allows to handle the button event when ItemTapped event is triggered in for Android platform . Due to some limitations in Xamarin Forms Android when button is clicked ItemTapped is also triggered along with Button Clicked event. To overcome this lag, use TapGestureRecognizer for ItemTapped.

Following example illustrates the usage of TapGestureRecognizer for ItemTapped event in group header which consists both Button Clicked event (To display number of contacts in respective group) and ItemTapped (To Expand/Collapse groups).

XAML

 

C#

 

Following screenshot shows the output to handle button events using tap gestures for group headers.

 Click here to download sample.

Article ID: Published Date: Last Revised Date: Platform: Control:
8634 03/29/2018 03/29/2018 Xamarin.Forms SfListView
Tags:
Did you find this information helpful?
Add Comment
You must log in to leave a comment

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon