Xamarin Listview StackLayout space between items
I just find out that I need to set HasUnevenRows=True. Then I changed to Grid because I wanted a ">" at the end:
<ListView xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="ConsumerBanking.UserControls.AccountsListView"
SeparatorVisibility="None"
BackgroundColor="Transparent"
HasUnevenRows="True" >
<ListView.ItemTemplate>
<DataTemplate>
<ViewCell>
<ViewCell.View>
<Grid BackgroundColor="White" Margin="0,0,0,1" >
<Grid.RowDefinitions>
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<StackLayout Grid.Column="0" Margin="10,5,0,5">
<Label Text="{Binding Name}"
VerticalTextAlignment="Center"
LineBreakMode="TailTruncation"/>
<Label Text="{Binding Amount}"
VerticalTextAlignment="Center"
LineBreakMode="TailTruncation"
FontSize="Large"/>
</StackLayout>
<Label Text=">" Grid.Column="1" VerticalTextAlignment="Center" Margin="0,0,20,0"
FontSize="Large" TextColor="{StaticResource darkGray}"/>
</Grid>
</ViewCell.View>
</ViewCell>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>