Forum Xamarin.Forms

Problem TapGestureRecognizer in cell listView android

Hi,
i've a problem with android devices and tapgesture for the items inside the cells
I have a code like this:
`<ViewCell.View>

<Grid BackgroundColor="White">
    <Grid.Padding>
        <OnPlatform x:TypeArguments="Thickness" iOS="0,0,0,0" Android="0,0,0,0" WinPhone="10,5,10,5" />
    </Grid.Padding>
    <Grid.RowDefinitions>
        <RowDefinition Height="*" />
    </Grid.RowDefinitions>
    <Grid.ColumnDefinitions>
        <ColumnDefinition Width="50" />
        <ColumnDefinition Width="*" />
        <ColumnDefinition Width="50" />
    </Grid.ColumnDefinitions>
    <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}" />
        </StackLayout>
    </Grid>
    <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>
        <Grid.GestureRecognizers>
            <TapGestureRecognizer Command="{Binding Path=BindingContext.OnActionDocumentCommand, Source={x:Reference Name=Documenti}}" CommandParameter="{Binding .}" />
        </Grid.GestureRecognizers>
    </Grid>
</Grid>

</ViewCell.View>`

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
Thanks

Sign In or Register to comment.