how to remove spacing between listview item , in my code , already declare item spacing as 0
<ScrollView>
<StackLayout Grid.Row="0" Grid.Column="0">
<listView:SfListView x:Name="TablelstViewData"
Orientation="Vertical"
AllowSwiping="True"
ItemSize="150"
ItemSpacing="0,0,0,0"
SelectionMode="Single">
<listView:SfListView.ItemsLayout>
<listView:GridLayout SpanCount="3" x:Name="gridLayout"/>
</listView:SfListView.ItemsLayout>
<!--#region Listing-->
<listView:SfListView.ItemTemplate>
<DataTemplate>
<ViewCell>
<ViewCell.View>
<Frame Padding="0" BackgroundColor="Green" WidthRequest="130" HeightRequest="130" Margin="0">
<Grid Margin="0,0,0,0">
<Grid.RowDefinitions>
<RowDefinition Height="20"/>
<RowDefinition Height="20"/>
<RowDefinition Height="20"/>
<RowDefinition Height="20"/>
</Grid.RowDefinitions>
<Label Grid.Row="0" Text="{Binding TableNo}"/>
</Grid>
</Frame>
</ViewCell.View>
</ViewCell>
</DataTemplate>
</listView:SfListView.ItemTemplate>
<!--#endregion-->
</listView:SfListView>
Hi Anson,
We have checked the reported query “Listview item spacing” , ItemsSpacing remains zero ,as you have mentioned as zero. Issue is from the Frame with WidthRequest and HeightRequest which aligns in the center we have tested the same scenario in Framework ListView and CollectionView , Which behaves as same in the SfListView. Currently we are validating the issue at our end. We are in need of two more business days to validate and confirm the behaviour. We will update you with further details on or before October 19,2022. we will appreciate your patience until then.
Regards,
Suthi Yuvaraj.
Hi Anson,
As mentioned in the previous update, we have checked the Frame with WidthRequest and HeightRequest which aligns in the center we have tested the same scenario in Framework ListView , BindableLayout and CollectionView , Which behaves as same in the SfListView. So that we have logged a bug in the framework level.
Kindly share your requirement or the application UI which you want to achieve in your application , which will be more helpful for us to find the solution as soon as possible
Regards,
Suthi Yuvaraj.