I have a CollectionView that has an ItemTemplate similar to the below:
<CollectionView>
<CollectionView.ItemTemplate>
<DataTemplate>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<Label Grid.Column="0"
Text="{Binding Name}" />
<Label Grid.Column="1"
Text="{Binding Cost}" />
</Grid>
</DataTemplate>
</CollectionView.ItemTemplate>
</CollectionView>
On iOS, everything seems fine, whereas on Android, specifically my physical Samsung device, there is a default "tap" sound that plays whenever I tap anywhere within the bounds of the item.
I can disable the sound by adding an empty TapGestureRecognizer to the ItemTemplate like so:
<Grid>
<Grid.GestureRecognizers>
<TapGestureRecognizer />
</Grid.GestureRecognizers>
</Grid>
This removes the sound but seems like a hack that I really don't want coming back to bite me sometime in the future, so I'd much prefer an actual solution.