title: Xamarin Listview StackLayout space between items
body: <p>I'm trying to display a listview that contains some items and I just want to give a bit of space between those items.</p>
  
  <p>I google about this but I could not find an answer that worked for me.
  Here is a solution that I found that has the same result that I wanted but didn't work: <a href="https://stackoverflow.com/a/30827419/1845593">https://stackoverflow.com/a/30827419/1845593</a></p>
  
  <p>I'm using xamarin forms 2.3.2.127 and I'd like to keep with xaml for this.</p>
  
  <p><strong>My xaml Code:</strong></p>
  
  <pre><code>&lt;pages:MainXaml.Content&gt;
  &lt;ListView x:Name="AccountsList"
            ItemsSource="{Binding Items}"
            SeparatorVisibility="None"
            BackgroundColor="Gray"&gt;
    &lt;ListView.ItemTemplate&gt;
      &lt;DataTemplate&gt;
        &lt;ViewCell&gt;
          &lt;ViewCell.View&gt;
            &lt;StackLayout BackgroundColor="White" Margin="0,0,0,20" &gt;
              &lt;Label Text="{Binding Name}"
                   VerticalTextAlignment="Center"
                   LineBreakMode="TailTruncation"
                     /&gt;
              &lt;Label Text="{Binding Amount}"
                     VerticalTextAlignment="Center"
                     LineBreakMode="TailTruncation"/&gt;
            &lt;/StackLayout&gt;
          &lt;/ViewCell.View&gt;
        &lt;/ViewCell&gt;
      &lt;/DataTemplate&gt;
    &lt;/ListView.ItemTemplate&gt;
  &lt;/ListView&gt;
  &lt;/pages:MainXaml.Content&gt;
  </code></pre>
  
  <p>I tried with spacing, Padding and Marging, none of them worked.</p>
  
  <p><strong>Visual Result/Expected:</strong></p>
  
  <p><a href="https://i.stack.imgur.com/AuYts.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/AuYts.jpg" alt="enter image description here"></a></p>
  
  <p>Thanks</p>