title: Xamarin Forms: getting a section of white space at the bottom of the screen
body: <p>I am a newbie to the world of Xamarin and I am encountering a weird issue.  All of my screens have a Navigation bar at the bottom of the page and somehow a section of white space seems to appear beneath the navigation bar, like this:</p>
  
  <p><a href="https://i.stack.imgur.com/VfOmX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VfOmX.png" alt="enter image description here"></a></p>
  
  <p>This is a screenshot of the emulator and the blue section is the bottom of the navigation bar and the white space is the empty space I would like to remove.  Disregard the black section, with the buttons at the absolute bottom, that is just the emulator.  </p>
  
  <p>Essentially, I would like to make the Scroll go where this white space is.  As a side note, the navigation bar is added programmatically and the content immediately above the navigation bar is contained in a scrolling container.  Currently, I am getting this on a Galaxy android phone and an emulator set to "Android_Accelerated_Nougat".</p>
  
  <p>What could this issue be?  What things can I check at possible suspects?  Are there any workarounds for this issue?</p>
  
  <p>Update:</p>
  
  <p>Here is the .xaml file:</p>
  
  <pre><code>        &lt;?xml version="1.0" encoding="utf-8" ?&gt;
  &lt;views:BaseContentPage xmlns="http://xamarin.com/schemas/2014/forms"
               xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
               xmlns:customRenderer="clr-namespace:MyNamespace.MyCustomRenderer;assembly=MyNamespace"
               xmlns:views="clr-namespace:MyNamespace.Views;assembly=MyNamespace"
               x:Class="MyNamespace.Views.CompanyEditPage"&gt;
   &lt;Grid &gt;
      &lt;Image Source="backgroundImg” Aspect="AspectFill" /&gt;
      &lt;ActivityIndicator x:Name="actIndicator” VerticalOptions="CenterAndExpand" Color="White" HorizontalOptions="CenterAndExpand" /&gt;
    &lt;StackLayout VerticalOptions="Start"&gt;
      &lt;ScrollView&gt;\
        &lt;StackLayout &gt;        
          &lt;StackLayout VerticalOptions="Start" HorizontalOptions="FillAndExpand"&gt;
            &lt;StackLayout VerticalOptions="Start"
                          HorizontalOptions="FillAndExpand"
                          Orientation="Vertical"
                          Padding="20,10"&gt;
                          &lt;Image x:Name="saveprofilebutton" Source="savebtn.png" Aspect="AspectFill" HeightRequest="40" HorizontalOptions="EndAndExpand"&gt;
                &lt;Image.GestureRecognizers&gt;
                  &lt;TapGestureRecognizer Tapped="Save_OnTapped" /&gt;
                &lt;/Image.GestureRecognizers&gt;
              &lt;/Image&gt;
              &lt;Image Source="companylogo.png"
                     HorizontalOptions="CenterAndExpand"
                     VerticalOptions="CenterAndExpand"/&gt;
            &lt;/StackLayout&gt;
            &lt;BoxView BackgroundColor="#6182c6"
                     HeightRequest="1"/&gt;
          &lt;/StackLayout&gt;
          &lt;StackLayout VerticalOptions="Start"
                            HorizontalOptions="FillAndExpand"&gt;
            &lt;StackLayout VerticalOptions="CenterAndExpand"
                          HorizontalOptions="FillAndExpand"
                          Orientation="Horizontal"
                         Padding="50,0,40,0"&gt;
              &lt;Label Text="Edit company membership"
                    TextColor="White"
                    FontSize="16"
                     HorizontalOptions="StartAndExpand"
                     VerticalOptions="CenterAndExpand"/&gt;
              &lt;Image x:Name="companymembershipimg" Source="arrow.png"
                     HorizontalOptions="EndAndExpand" &gt;
                &lt;Image.GestureRecognizers&gt;
                  &lt;TapGestureRecognizer Tapped="EditMembership_OnTapped"/&gt;
                &lt;/Image.GestureRecognizers&gt;
              &lt;/Image&gt;
            &lt;/StackLayout&gt;
            &lt;BoxView BackgroundColor="#6182c6"
                     HeightRequest="1"/&gt;
          &lt;/StackLayout&gt;
          &lt;StackLayout VerticalOptions="Start"
                             HorizontalOptions="FillAndExpand"&gt;
            &lt;StackLayout VerticalOptions="CenterAndExpand"
                         HorizontalOptions="FillAndExpand"
                         Orientation="Vertical"
                         Spacing="0"&gt;
              &lt;StackLayout VerticalOptions="Start"
                       HorizontalOptions="FillAndExpand"
                       Orientation="Horizontal"
                           Padding="50,10,40,10"&gt;
  
                &lt;Label  Text="Activity Start Date”
                      TextColor="White"
                      FontSize="16"
                       HorizontalOptions="StartAndExpand"
                        VerticalOptions="CenterAndExpand"/&gt;
  
                &lt;customRenderer:MyTimePicker x:Name="MyActivityStartTimePicker"
                                             Unfocused="ActivityStartTime_Unfocused"
                                             HorizontalOptions="EndAndExpand"
                                             VerticalOptions="Center"/&gt;
              &lt;/StackLayout&gt;
  
              &lt;StackLayout VerticalOptions="Start"
                      HorizontalOptions="FillAndExpand"
                      Orientation="Horizontal"
                           Padding="50,0,40,0"&gt;
  
                &lt;Label  Text="Activity End Date”
                      TextColor="White"
                      FontSize="16"
                       HorizontalOptions="StartAndExpand"/&gt;
                &lt;customRenderer:MyTimePicker x:Name="MyActivityEndTimePicker"
                                             Unfocused="ActivityEndTime_Unfocused"
                                             HorizontalOptions="EndAndExpand"
                                             VerticalOptions="Center"/&gt;
              &lt;/StackLayout&gt;
            &lt;/StackLayout&gt;
            &lt;BoxView BackgroundColor="#6182c6"
                     HeightRequest="1"/&gt;
          &lt;/StackLayout&gt;
          &lt;StackLayout&gt;
            &lt;StackLayout VerticalOptions="Start"
                                    HorizontalOptions="FillAndExpand"
                                   Orientation="Vertical"
                                   Spacing="10"
                                    Padding="50,20,40,20"&gt;              
          &lt;Label &gt;
                &lt;Label.FormattedText&gt;
                  &lt;FormattedString&gt;
                    &lt;Span Text="I want to update members every "
                          ForegroundColor="White"
                          FontSize="16" /&gt;
                    &lt;Span x:Name="TimeRange”
                          Text="15"
                          ForegroundColor="White"
                         FontSize="16" /&gt;
                    &lt;Span Text=" day(s)."
                          ForegroundColor="White"
                          FontSize="16" /&gt;
                  &lt;/FormattedString&gt;
                &lt;/Label.FormattedText&gt;
              &lt;/Label&gt;
              &lt;customRenderer:MySlider x:Name="MySlider”
                                       Maximum="28"
                                       Minimum="1"
                                         ValueChanged="MySlider_OnValueChanged"
                                       Unfocused="MySlider_OnUnfocused"/&gt;
              &lt;StackLayout Orientation="Horizontal"
                             HorizontalOptions="CenterAndExpand"
                              Spacing="0" Margin="0" Padding="1" BackgroundColor="White"&gt;
  
                &lt;Label x:Name="LblSunday” WidthRequest="36" TextColor="White" HeightRequest="28" FontSize="18" BackgroundColor="#00158f" Text="Su" Margin="1" HorizontalTextAlignment="Center"  VerticalTextAlignment="Center"&gt;
                  &lt;Label.GestureRecognizers&gt;
                    &lt;TapGestureRecognizer Tapped="Sunday_OnTapped" /&gt;
                  &lt;/Label.GestureRecognizers&gt;
                &lt;/Label&gt;
  
                &lt;Label x:Name="LblMonday” WidthRequest="36" HeightRequest="28" FontSize="18" BackgroundColor="#00158f" TextColor="White" Text="Mo" Margin="1" HorizontalTextAlignment="Center"  VerticalTextAlignment="Center"&gt;
                  &lt;Label.GestureRecognizers&gt;
                    &lt;TapGestureRecognizer Tapped="Monday_OnTapped"/&gt;
                  &lt;/Label.GestureRecognizers&gt;
                &lt;/Label&gt;
  
                &lt;Label x:Name="LblTuesday” BackgroundColor="#00158f" WidthRequest="36" HeightRequest="28" FontSize="18" Text="Tu" Margin="1"  TextColor="White" HorizontalTextAlignment="Center"  VerticalTextAlignment="Center"&gt;
                  &lt;Label.GestureRecognizers&gt;
                    &lt;TapGestureRecognizer Tapped="Tuesday_OnTapped"/&gt;
                  &lt;/Label.GestureRecognizers&gt;
                &lt;/Label&gt;
  
                &lt;Label x:Name="LblWednesday” BackgroundColor="#00158f" TextColor="White" WidthRequest="36" HeightRequest="28" FontSize="18" Text="We" Margin="1" HorizontalTextAlignment="Center"  VerticalTextAlignment="Center"&gt;
                  &lt;Label.GestureRecognizers&gt;
                    &lt;TapGestureRecognizer Tapped="Wednesday_OnTapped"/&gt;
                  &lt;/Label.GestureRecognizers&gt;
                &lt;/Label&gt;
  
                &lt;Label x:Name="LblThursday” BackgroundColor="#00158f" WidthRequest="36" TextColor="White" HeightRequest="28" FontSize="18" Text="Th" Margin="1" HorizontalTextAlignment="Center"  VerticalTextAlignment="Center"&gt;
                  &lt;Label.GestureRecognizers&gt;
                    &lt;TapGestureRecognizer Tapped="Thursday_OnTapped" /&gt;
                  &lt;/Label.GestureRecognizers&gt;
                &lt;/Label&gt;
  
                &lt;Label x:Name="LblFriday” BackgroundColor="#00158f" TextColor="White" WidthRequest="36" HeightRequest="28" FontSize="18" Text="Fr" Margin="1" HorizontalTextAlignment="Center"  VerticalTextAlignment="Center"&gt;
                  &lt;Label.GestureRecognizers&gt;
                    &lt;TapGestureRecognizer Tapped="Friday_OnTapped" /&gt;
                  &lt;/Label.GestureRecognizers&gt;
                &lt;/Label&gt;
  
                &lt;Label x:Name="LblSaturday” BackgroundColor="White" Text="Sa"  WidthRequest="32" HeightRequest="28" FontSize="18" TextColor="#00158f" Margin="1" HorizontalTextAlignment="Center"  VerticalTextAlignment="Center"&gt;
                  &lt;Label.GestureRecognizers&gt;
                    &lt;TapGestureRecognizer Tapped="Saturday_OnTapped"/&gt;
                  &lt;/Label.GestureRecognizers&gt;
                &lt;/Label&gt;
              &lt;/StackLayout&gt;
            &lt;/StackLayout&gt;
            &lt;BoxView BackgroundColor="#6182c6"
                     HeightRequest="1"/&gt;
          &lt;/StackLayout&gt;
          &lt;StackLayout VerticalOptions="StartAndExpand"
                       HorizontalOptions="FillAndExpand"&gt;
  
            &lt;StackLayout VerticalOptions="CenterAndExpand"
                         HorizontalOptions="FillAndExpand"
                         Orientation="Horizontal"
                         Padding="50,20,40,50"&gt;
              &lt;Label Text="Activity List"
                     TextColor="White"
                     FontSize="16"
                     HorizontalOptions="StartAndExpand"
                     VerticalOptions="CenterAndExpand"/&gt;
              &lt;Image x:Name="activityimg" Source="arrow.png"
                     HorizontalOptions="EndAndExpand" &gt;
                &lt;Image.GestureRecognizers&gt;
                  &lt;TapGestureRecognizer Tapped="ActivityList_OnTapped"/&gt;
                &lt;/Image.GestureRecognizers&gt;
              &lt;/Image&gt;
            &lt;/StackLayout&gt;
          &lt;/StackLayout&gt;
        &lt;/StackLayout&gt;
      &lt;/ScrollView&gt;
    &lt;/StackLayout&gt;
  &lt;/Grid&gt;
  &lt;/views:BaseContentPage&gt;
  </code></pre>