Forum Xamarin.Forms

Problem TapGestureRecognizer in cell listView android

i've a problem with android devices and tapgesture for the items inside the cells
I have a code like this:

<Grid BackgroundColor="White">
        <OnPlatform x:TypeArguments="Thickness" iOS="0,0,0,0" Android="0,0,0,0" WinPhone="10,5,10,5" />
        <RowDefinition Height="*" />
        <ColumnDefinition Width="50" />
        <ColumnDefinition Width="*" />
        <ColumnDefinition Width="50" />
    <Image Margin="10,0,0,0" Source="{Binding Converter={StaticResource DocumentImageConverter}}" Grid.Column="0" />
    <Grid Grid.Column="1" Padding="16,8,16,8">
        <StackLayout VerticalOptions="CenterAndExpand" HeightRequest="60">
            <Label Margin="0,0,0,0" Text="{Binding Nome}" Grid.Row="0" Style="{StaticResource TextDocumentCell}" />
            <Label Margin="0,0,0,0" Text="{Binding Converter={StaticResource DocumentDescriptionConverter}}" Grid.Row="1" Style="{StaticResource SubDocumentTextStyle}" />
    <Grid Grid.Column="2" Margin="0,2,0,2" Padding="0,5" IsVisible="{Binding Formato, Converter={StaticResource DocumentActionConverter}}">
        <Image Source="ic_more" HorizontalOptions="CenterAndExpand"></Image>
            <TapGestureRecognizer Command="{Binding Path=BindingContext.OnActionDocumentCommand, Source={x:Reference Name=Documenti}}" CommandParameter="{Binding .}" />


If i tap when the list appears nothing happens, but if i scroll the list and i tap that area the gesture will fire!
I've also try including a button transparent or using inputtrasparent="true" but no success.
Is it a bug of xamarin forms?
In iOS everything works fine

Sign In or Register to comment.