Bug 37205 - [Android] ScrollView hides StatusBar
Summary: [Android] ScrollView hides StatusBar
Status: RESOLVED FIXED
Alias: None
Product: Forms
Classification: Xamarin
Component: Android ()
Version: 2.0.0
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2015-12-21 17:55 UTC by Anubhav Ranjan
Modified: 2017-09-07 14:13 UTC (History)
5 users (show)

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


Attachments
Sample Project (47.44 KB, application/zip)
2017-09-07 14:13 UTC, David Ortinau [MSFT]
Details


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 Anubhav Ranjan 2015-12-21 17:55:42 UTC
#Description:
===========
I am using Xamarin.Forms to make an Android app. I would like to report 
a bug. The bug is as follows:

I have a page which contains a content that is wrapped in ScrollView. In 
the page I have some entries, pickers and other controls. When I focus 
on the entries, the soft keyboard appears and the content overlaps with 
the status bar and hides it.

Attachment [1.png] shows the page on initial load. As you can see, the 
status bar is there and it is colored green.
Attachment [2.png] shows the page when we have focused on an Entry. As you 
can see - the status bar is hidden and the page's content overlaps with it.

The same happens if we use TableView.

[1.png]: https://dl.dropboxusercontent.com/u/30949500/Xamarin%20Samples/242042/1.png
[2.png]: https://dl.dropboxusercontent.com/u/30949500/Xamarin%20Samples/242042/2.png

#Sample:
=========
https://dl.dropboxusercontent.com/u/30949500/Xamarin%20Samples/242042/DemoProject.rar


#Version Information:
===============
#Version Information:
================
Microsoft Visual Studio Enterprise 2015
Version 14.0.24720.00 Update 1
Microsoft .NET Framework
Version 4.6.01055

Installed Version: Enterprise

Architecture and Modeling Tools   00322-80000-00000-AA096
Microsoft Architecture and Modeling Tools
    
UML® and Unified Modeling Language™ are trademarks or registered trademarks of the Object Management Group, Inc. in the United States and other countries.

Visual Basic 2015   00322-80000-00000-AA096
Microsoft Visual Basic 2015

Visual C# 2015   00322-80000-00000-AA096
Microsoft Visual C# 2015

Visual C++ 2015   00322-80000-00000-AA096
Microsoft Visual C++ 2015

Windows Phone SDK 8.0 - ENU   00322-80000-00000-AA096
Windows Phone SDK 8.0 - ENU

Application Insights Tools for Visual Studio Package   1.0
Application Insights Tools for Visual Studio

ASP.NET and Web Tools 2015 (RC1 Update 1)   14.1.11120.0
ASP.NET and Web Tools 2015 (RC1 Update 1)

ASP.NET Web Frameworks and Tools 2012.2   4.1.41102.0
For additional information, visit http://go.microsoft.com/fwlink/?LinkID=309563

ASP.NET Web Frameworks and Tools 2013   5.2.30624.0
For additional information, visit http://www.asp.net/

Azure App Service Tools v2.8.1   14.0.11123.0
Azure App Service Tools v2.8.1

Common Azure Tools   1.7
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.

DataFactoryProject   1.0
Microsoft Data Factory Package

GitHub.VisualStudio   1.0
A Visual Studio Extension that brings the GitHub Flow into Visual Studio.

JetBrains ReSharper Ultimate 10.0.1   Build 104.0.20151114.160203
JetBrains ReSharper Ultimate package for Microsoft Visual Studio. For more information about ReSharper Ultimate, visit http://www.jetbrains.com/resharper. Copyright © 2015 JetBrains, Inc.

Microsoft Azure Data Factory Node Node   1.0
Azure Data Factory extension for Visual Studio Server Explorer.

Microsoft Azure HDInsight HQL Service   2.0.2900.0
Language service for Hive query

Microsoft Azure HDInsight Tools for Visual Studio   2.0.2900.0
An integrated development environment for HDInsight application development.

Microsoft Azure Mobile Services Tools   1.4
Microsoft Azure Mobile Services Tools

Microsoft Azure Tools   2.7
Microsoft Azure Tools for Microsoft Visual Studio 2015 - v2.7.30728.1602

Microsoft Azure Tools   2.8
Microsoft Azure Tools for Microsoft Visual Studio 2015 - v2.8.31121.1

NuGet Package Manager   3.3.0
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.

PreEmptive Analytics Visualizer   1.2
Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product.

SQL Server Data Tools   14.0.50730.0
Microsoft SQL Server Data Tools

TypeScript   1.7.4.0
TypeScript for Microsoft Visual Studio

Visual Studio Tools for Universal Windows Apps   14.0.24720.00
The Visual Studio Tools for Universal Windows apps allow you to build a single universal app experience that can reach every device running Windows 10: phone, tablet, PC, and more. It includes the Microsoft Windows 10 Software Development Kit.

Xamarin   4.0.0.1717 (1390b70)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin.Android   6.0.0.35 (d300845)
Visual Studio plugin to enable development for Xamarin.Android.

Xamarin.iOS   9.3.99.33 (ea30b32)
Visual Studio extension to enable development for Xamarin.iOS.
Comment 2 Mihail 2015-12-22 10:49:00 UTC
I was also able to reproduce the issue. The screenshots are from my case. The bug emerged on HTC One M8 running Lollipop (5.0.1). I think that this happens only on Lollipop and above, since I was unable to reproduce it in the other versions below. It might have something to do with the coloring of the status bar, which began possible on Lollipop. The bug occurs if our MainActivity is deriving from FormsAppCompatActivity, and not from FormsApplicationActivity. 

So to sum up - the issue happens only on devices running Lollipop or above, which MainActivity's parent Activity is FormsAppCompatActivity.
Comment 3 Mihail 2015-12-23 06:39:53 UTC
I was also able to reproduce the bug. This happens only if we focus an entry (or any other control) that is of the bottom line. If we have an entry that is on the first row, this bug won't happen. This bug occurs only if we are using FormsAppCompatActivity and when we have a ScrollView or a TableView with a lot of rows and when we focus of a row that is one of the bottom rows.
Comment 4 adrianknight89 2016-10-21 01:19:52 UTC
See https://github.com/xamarin/Xamarin.Forms/pull/422
Comment 5 David Ortinau [MSFT] 2017-09-07 14:13:45 UTC
Created attachment 24624 [details]
Sample Project

This is resolved in the latest code.

Selecting an Entry at the top of the content doesn't cause an issue, but when selecting an Entry that requires scrolling into view with an open keyboard the status bar could be obscured.

2.3.4.267: BAD
2.4.0.269-pre2: GOOD