title: Xamarin Forms Android Keyboard moves whole Page upwards
body: <p>I was trying to write a Xamarin.Forms chat-app.
  The problem is: On Android, as soon as the keyboard shows up the whole page (including the ActionBar) moves upwards. I could fix the problem on IOS by using a NuGet package that resizes the page.</p>
  
  <p>I already tried to set <code>WindowSoftInputMode = Android.Views.SoftInput.AdjustResize</code> in the MainActivity.cs in the Android project but it didn't work.
  I also tried to resize the page manually by recalculating the screen size, but I haven't found a solution to get the keyboard size for an exact calculation on different devices.</p>
  
  <p>Has anyone had the same problem before?
  Is there an official Xamarin.Forms solution for all supported platforms?</p>
  
  <p>This is my chat layout so far:</p>
  
  <p>
  </p>
  
  <pre><code>&lt;ContentPage.Content&gt;
  &lt;StackLayout Padding="0"&gt;
    &lt;ScrollView&gt;
      &lt;ListView HasUnevenRows="true" x:Name="lvChat" &gt;
        &lt;ListView.ItemTemplate&gt;
          &lt;DataTemplate&gt;
            &lt;ViewCell&gt;
              &lt;StackLayout Orientation="Vertical" VerticalOptions="Fill" HorizontalOptions="Fill" Padding="5"&gt;
  
  
                &lt;Label Text="{Binding Author, StringFormat='{0}: '}" TextColor="Navy" FontSize="14"  /&gt;
                &lt;Label Text="{Binding Text}" TextColor="Black" FontSize="15" /&gt;
                &lt;Label Text="{Binding Time}" TextColor="Black" FontSize="14"  /&gt;
                &lt;!-- Format for time.. , StringFormat='{0:HH:mm}' --&gt;
  
              &lt;/StackLayout&gt;
            &lt;/ViewCell&gt;
          &lt;/DataTemplate&gt;
        &lt;/ListView.ItemTemplate&gt;
      &lt;/ListView&gt;
    &lt;/ScrollView&gt;
  
  
    &lt;StackLayout Orientation="Horizontal" Padding="0" Margin="5, 5, 5, 5"&gt;
      &lt;Entry Keyboard="Chat" x:Name="tbxChatInput" HorizontalOptions="FillAndExpand" Placeholder="Send a Message..." /&gt;
      &lt;Button x:Name="btnSendMsg" HorizontalOptions="End" Text="Send" Margin="5"/&gt;
  
    &lt;/StackLayout&gt;
  &lt;/StackLayout&gt;
  </code></pre>
  
  <p></p>
  
  <p>Thanks in advance!</p>