Skip to content

Commit 03f87c8

Browse files
Merge pull request #5 from Anandh-SF4665/master
Updated the README.md file.
2 parents 6e7146e + cb3db16 commit 03f87c8

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,34 @@
11
# How to handle the tapped Xamarin.Forms listview tapped event when child view is clicked in Android platform?
22
This example demonstrates how to handle the interaction event for the child view in Android Renderer.
33

4+
## Sample
5+
6+
```xaml
7+
<sync:SfListView x:Name="listView"
8+
TapCommand="{Binding TapCommand}"
9+
ItemsSource="{Binding BookInfo}">
10+
<sync:SfListView.ItemTemplate>
11+
<DataTemplate>
12+
<Grid Padding="10" BackgroundColor="Aqua">
13+
<Grid.GestureRecognizers>
14+
<TapGestureRecognizer Command="{Binding Path = BindingContext.GestureCommand, Source={x:Reference listView}}"/>
15+
</Grid.GestureRecognizers>
16+
<Grid.ColumnDefinitions>
17+
<ColumnDefinition Width="*" />
18+
<ColumnDefinition Width="100" />
19+
</Grid.ColumnDefinitions>
20+
<Grid.RowDefinitions>
21+
<RowDefinition Height="0.4*" />
22+
<RowDefinition Height="0.6*" />
23+
</Grid.RowDefinitions>
24+
<Label Text="{Binding BookName}" FontAttributes="Bold"/>
25+
<Button Text="Test" Command="{Binding BindingContext.ButtonCommand, Source={x:Reference listView}}" Grid.Row="1"/>
26+
</Grid>
27+
</DataTemplate>
28+
</sync:SfListView.ItemTemplate>
29+
</sync:SfListView>
30+
```
31+
432
See [How to handle the tapped event when child view is clicked in Android platform](https://www.syncfusion.com/kb/9536/how-to-handle-the-tapped-event-when-child-view-is-clicked-in-android-platform) for more details.
533
## <a name="requirements-to-run-the-demo"></a>Requirements to run the demo ##
634

0 commit comments

Comments
 (0)