Bug 51239 - Layout does not move up on keyboard activation
Summary: Layout does not move up on keyboard activation
Status: RESOLVED FIXED
Alias: None
Product: Forms
Classification: Xamarin
Component: Android ()
Version: 2.3.3
Hardware: PC Mac OS
: Normal normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2017-01-05 15:08 UTC by Hrafn Loftsson
Modified: 2017-06-20 15:41 UTC (History)
4 users (show)

Tags: android
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description Hrafn Loftsson 2017-01-05 15:08:18 UTC
In Xamarin.Forms 2.3.2.127, when the user activates the soft keyboard by clicking on an entry on a page, the layout is moved up so the keyboard does not hide the UI controls.  In Xamarin.Forms 2.3.3.175, this does not happen.

A sample solution is available at https://github.com/KolibriDev/TestXFBugs
This project has Xamarin.Forms 2.3.3.175 installed.

* Build and run the Droid project.
* Click on an entry on LoginPage
* The keyboard is shown, but the layout does not move up

* Downgrade to Xamarin.Forms 2.3.2.127 in the solution.
* Clean, build and run the Droid project.
* Click on an entry on LoginPage
* The keyboard is shown AND the layout does move up
Comment 1 Stephane Delcroix 2017-02-15 13:00:53 UTC
I wasn't able to reproduce this error, using 2.3.3.175 on a Nexus5X running android 7.1.1 using the revision f8ebab8aa616723e97c7e254e29dc8bdf704b8ce of your repository

Does this happens on all devices/android versions you tried ? Are you able to reproduce this issue in a simulator ? Any additional information you could provide will help us narrowing down the cause of your problem
Comment 2 Hrafn Loftsson 2017-02-17 09:18:43 UTC
My original description was not accurate enough.  The layout does indeed move up in both versions, but there is an important difference:

XF 2.3.3.180:
When the username entry field gets focus, and the keyboard becomes visible, the layout is moved up (the InfoTextBlock at the top disappears).  The three entry fields are then visible on the screen, but NOT the Login button (it is covered by the keyboard). 

XF 2.3.2.127:
When the User name entry field gets focus, and the keyboard becomes visible, the layout is moved up  (the InfoTextBlock at the top disappears).  Two entry fields (username and password) are then visible on the screen, as well as the Login button (which is thus NOT covered by the keyboard). 

This happens, for example, on:

Samsung SM-G930F device, Android 6.0 - API 23
Xamarin Android Player, Nexus 5, Android 5.1 - API 22

Our app relies on the layout movement functionality as it behaves in XF 2.3.2.127.
Comment 3 Rui Marinho 2017-06-20 15:41:04 UTC
Thank you for taking the time to submit this report. After reviewing the description of this bug, we believe it no longer affects the current version of Xamarin.Forms. If you are still experiencing the issue after updating your packages, please reopen this report with an attached reproduction. 
 
Here are some reproduction best practices: https://gist.github.com/jassmith/92405c300e54a01dcc6d