Bug 37888 - [Android] Master page of MasterDetailPage has invisible area that blocks clicking just outside of the visible area to close the master page.
Summary: [Android] Master page of MasterDetailPage has invisible area that blocks clic...
Status: CONFIRMED
Alias: None
Product: Forms
Classification: Xamarin
Component: Android ()
Version: 2.0.0
Hardware: Macintosh Mac OS
: Normal normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2016-01-22 01:44 UTC by Jon Goldberger [MSFT]
Modified: 2017-11-27 18:27 UTC (History)
5 users (show)

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


Attachments
Test Project (67.34 KB, application/zip)
2016-01-22 01:44 UTC, Jon Goldberger [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 for Bug 37888 on Developer Community or GitHub if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML or GitHub Markdown
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:
Status:
CONFIRMED

Description Jon Goldberger [MSFT] 2016-01-22 01:44:41 UTC
Created attachment 14665 [details]
Test Project

## Description

Master page of MasterDetailPage has invisible area (or so I suspect) that blocks clicking just outside of the visible area to close the master page. It also seems to make a longer swipe required to open the page than otherwise would be necessary. 

I believe that it is an "invisible area" issue because if I create a custom renderer for the MasterDetailPage to set the width of the drawer, as per this forum post [1], then I can click just outside the visible area and close the master page. 

[1] https://forums.xamarin.com/discussion/comment/62894/#Comment_62894

Tested with Forms 2.0.0.6490 and Forms 2.0.1.6495

## Steps to reproduce. 

1. Open the attached test project. (modified from github: 
https://github.com/xamarin/xamarin-forms-samples/tree/master/Navigation/MasterDetailPage
to add customer renderer, which is commented out now so the issue will show.)

2. Set Android project as the startup project and deploy to an Android device or simulator (tested with XAP Nexus S Kit Kat)

3. When the UI is shown, do a quick swipe from left to right to open the master page:

Expected result: Master page will open.

Actual result: Master page starts to open but closes again.

4. Now do a long swipe from left to right

Expected result: Master page will open.

Actual result: As expected.

5. Once the master page is open, tap just to the right of it to close it.

Expected result: Master page will close.

Actual result: Master page does not close.

6. Now tap towards the right edge of the screen

Expected result: Master page will close.

Actual result: As expected.


## Screencast:

Without custom MasterDetailRenderer: http://screencast.com/t/TA2qfGyyLH9
With custom MasterDetailRenderer: http://screencast.com/t/xsQzrsH81c
To see behavior with customer renderer, uncomment line 12 of MyMasterDetailRenderer.cs in the Android project of the attached test solution.


## Environment

Forms 2.0.1.6495

=== Xamarin Studio ===

Version 5.10.1 (build 6)
Installation UUID: 964c531b-d928-456b-a9ae-e1f82266b360
Runtime:
	Mono 4.2.1 (explicit/6dd2d0d)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 402010102

=== Xamarin.Profiler ===

Version: 0.22.0.0
Location: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler

=== Xamarin.Android ===

Version: 6.0.0.34 (Business Edition)
Android SDK: /Users/apple/Library/Developer/Xamarin/android-sdk-mac_x86
	Supported Android versions:
		4.0.3 (API level 15)
		4.1   (API level 16)
		4.2   (API level 17)
		4.3   (API level 18)
		4.4   (API level 19)
		5.0   (API level 21)
		5.1   (API level 22)
		6.0   (API level 23)

SDK Tools Version: 24.4.1
SDK Platform Tools Version: 23.1
SDK Build Tools Version: 23.0.2

Java SDK: /usr
java version "1.7.0_79"
Java(TM) SE Runtime Environment (build 1.7.0_79-b15)
Java HotSpot(TM) 64-Bit Server VM (build 24.79-b02, mixed mode)

=== Xamarin Android Player ===

Version: 0.6.5
Location: /Applications/Xamarin Android Player.app

=== Apple Developer Tools ===

Xcode 7.2 (9548)
Build 7C68

=== Xamarin.iOS ===

Version: 9.4.0.0 (Business Edition)
Hash: 7322991
Branch: master
Build date: 2015-12-08 16:20:29-0500

=== Xamarin.Mac ===

Version: 2.4.0.109 (Business Edition)

=== Xamarin Inspector ===

Version: 0.3.2.3
Hash: 1b526e6
Branch: master
Build date: Tue Nov 17 20:54:30 UTC 2015

=== Build Information ===

Release ID: 510010006
Git revision: 0b60eecdb531933734519c13257d16a780274aab
Build date: 2015-12-04 20:28:20-05
Xamarin addins: 9876fd7c9837977178411ec7375b4352c0a0d6af
Build lane: monodevelop-lion-cycle6-baseline

=== Operating System ===

Mac OS X 10.11.2
Darwin Jons-iMac.local 15.2.0 Darwin Kernel Version 15.2.0
    Fri Nov 13 19:56:56 PST 2015
    root:xnu-3248.20.55~2/RELEASE_X86_64 x86_64