title: Xamarin Forms Listview in StackLayout Overlapping Layout Above It
body: <p>I have a ListView that I need stacked under another horizontal Stack Layout. No matter what I do, it appears that the ListView overlaps everything above it. I need it to not have this behavior and actually show the layout above. I just do not know how, and any help would be appreciated.</p>
  
  <p>I've also attempted to put both in a grid, and did manage to free up space on the top but none of the Test labels show up, still.</p>
  
  <p><a href="https://i.stack.imgur.com/mfFkp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mfFkp.png" alt="enter image description here"></a></p>
  
  <p>As seen above, the ListView simply overlaps that which is above it (the stack layout with labels), as well as is shown with two entries above Aaron offscreen up top.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;ContentPage xmlns="http://xamarin.com/schemas/2014/forms" 
               xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" 
               x:Class="engME.YourFullNamesListPage"&gt;
  
      &lt;StackLayout&gt;
          &lt;StackLayout Orientation="Horizontal"&gt;
              &lt;Label Text="Test 1" HorizontalTextAlignment="Center"/&gt;
              &lt;Label Text="Test 2" HorizontalTextAlignment="Center"/&gt;
              &lt;Label Text="Test 3" HorizontalTextAlignment="Center"/&gt;
              &lt;Label Text="Test 4" HorizontalTextAlignment="Center"/&gt;
          &lt;/StackLayout&gt;
          &lt;StackLayout Orientation="Vertical" VerticalOptions="Fill" HorizontalOptions="FillAndExpand"&gt;
              &lt;ListView x:Name="FullNamesList" VerticalOptions="FillAndExpand" RowHeight="50"&gt;
                  &lt;ListView.ItemTemplate&gt;
                      &lt;DataTemplate&gt;
                          &lt;ViewCell&gt;
                              &lt;Grid&gt;
                                  &lt;Grid.ColumnDefinitions&gt;
                                      &lt;ColumnDefinition Width="*"/&gt;
                                      &lt;ColumnDefinition Width="1.1*"/&gt;
                                      &lt;ColumnDefinition Width=".3*"/&gt;
                                  &lt;/Grid.ColumnDefinitions&gt;
                                  &lt;Label FontSize="Large" 
                                         FontAttributes="Bold" 
                                         HorizontalTextAlignment="Start"
                                         Margin="20,0,0,0"
                                         VerticalTextAlignment="Center"
                                         Grid.Row="0"
                                         Grid.Column="0"&gt;
                                      &lt;Label.Triggers&gt;
                                          &lt;DataTrigger TargetType="Label" Binding="{Binding Gender}" Value="F"&gt;
                                              &lt;Setter Property="Text" Value="{Binding Name}"/&gt;
                                              &lt;Setter Property="TextColor" Value="#cc0066"/&gt;
                                          &lt;/DataTrigger&gt;
                                          &lt;DataTrigger TargetType="Label" Binding="{Binding Gender}" Value="M"&gt;
                                              &lt;Setter Property="Text" Value="{Binding Name}"/&gt;
                                              &lt;Setter Property="TextColor" Value="#007acc"/&gt;
                                          &lt;/DataTrigger&gt;
                                          &lt;DataTrigger TargetType="Label" Binding="{Binding Gender}" Value="A"&gt;
                                              &lt;Setter Property="Text" Value="{Binding Name}"/&gt;
                                              &lt;Setter Property="TextColor" Value="#00994d"/&gt;
                                          &lt;/DataTrigger&gt;
                                      &lt;/Label.Triggers&gt;
                                  &lt;/Label&gt;
                                  &lt;Label Text="{Binding ShortMeaning}"
                                         FontSize="Small"
                                         TextColor="Gray"
                                         VerticalTextAlignment="Center"
                                         Grid.Row="0"
                                         Grid.Column="1"&gt;
                                  &lt;/Label&gt;
                                  &lt;Image Source="favorite.png"
                                         Grid.Row="0"
                                         Grid.Column="2"
                                         Scale=".7"&gt;
                                  &lt;/Image&gt;
                              &lt;/Grid&gt;
                          &lt;/ViewCell&gt;
                      &lt;/DataTemplate&gt;
                  &lt;/ListView.ItemTemplate&gt;    
              &lt;/ListView&gt;
          &lt;/StackLayout&gt;
      &lt;/StackLayout&gt;
  &lt;/ContentPage&gt;
  </code></pre>