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. Image for the cookie policy date
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?

Platform: Xamarin.Forms |
Control: SfListView
Tags: general

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).





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

 Click here to download sample.

2X faster development

The ultimate Xamarin UI toolkit to boost your development speed.
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

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

Live Chat Icon For mobile