xamarin-demos icon indicating copy to clipboard operation
xamarin-demos copied to clipboard

Xamarin syncfusion sflistview TapGestureRecognizer not firing on Android only

Open 33Infinity opened this issue 5 years ago • 1 comments

HotelReservationOption_Tapped is not firing for Android. Works fine in iOS.

I am using Xamarin.Forms 4.8.0.1560 All my syncfusion packages are 18.3.0.40 Target Framework is Android 9.0 (Pie)

<syncfusion:SfListView AutoFitMode="Height" ItemsSource="{Binding ReservationListActive}" SelectionBackgroundColor="Transparent" VerticalOptions="FillAndExpand" HorizontalOptions="FillAndExpand" Margin="0,10,0,0"> <syncfusion:SfListView.ItemTemplate> <DataTemplate> <ViewCell> <StackLayout> <ScrollView VerticalOptions="FillAndExpand"> <Grid> <Grid.RowDefinitions> <RowDefinition Height="*"></RowDefinition> <RowDefinition Height="Auto"></RowDefinition> </Grid.RowDefinitions> <StackLayout Grid.Row="0" Margin="20,9,20,14" Orientation="Horizontal"> <StackLayout Orientation="Vertical" Spacing="6"> <Label Text="{Binding HotelName}" TextColor="{StaticResource LabelColor}" FontSize="18"></Label> <StackLayout Orientation="Horizontal" Spacing="9"> <Image Source="calendarPageEmpty1"></Image> <Label Text="{Binding HotelName}" TextColor="{StaticResource LightGrey2}" FontSize="14"></Label> </StackLayout> </StackLayout> <Image HorizontalOptions="EndAndExpand" Source="dots.png" HeightRequest="20" WidthRequest="20" BackgroundColor="Transparent"> <Image.GestureRecognizers> <TapGestureRecognizer Tapped="HotelReservationOption_Tapped" CommandParameter="{Binding HotelID}"/> </Image.GestureRecognizers> </Image> </StackLayout> <BoxView Grid.Row="1" HeightRequest="1" Color="{StaticResource LineColor}"></BoxView> </Grid> </ScrollView> </StackLayout> </ViewCell> </DataTemplate> </syncfusion:SfListView.ItemTemplate> </syncfusion:SfListView>

33Infinity avatar Nov 06 '20 18:11 33Infinity

Hi @33Infinity ,

We have checked the reported query “Xamarin syncfusion sflistview TapGestureRecognizer not firing on Android only” from our end. We would like to inform you that we are unable to reproduce the reported scenario at our side. We have attached the tested sample in the following link, Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/3015061347217706

Additional information: Tested device: Android 8.1 API 27 emulator SfListView version: 18.3.0.40 Xamarin Forms: 4.8.0.1560 Xamarin: 16.7.000.456 Xamarin Designer: 16.7.0.495 Xamarin Templates: 16.7.85 Xamarin Android SDK: 11.0.2.0

Could you please check our sample and let us know if you still facing the same issue? If not, please modify our sample and share the device configuration details which will be helpful for us to check on it and provide you the solution as soon as possible.

Regards, Lakshmi Natarajan

LakshmiNatarajan21 avatar Nov 09 '20 10:11 LakshmiNatarajan21