Bug 39831 - MasterDetailPage showing back button instead of Icon in landscape mode (Tablet only)
Summary: MasterDetailPage showing back button instead of Icon in landscape mode (Table...
Status: RESOLVED FIXED
Alias: None
Product: Forms
Classification: Xamarin
Component: Android ()
Version: 2.1.0
Hardware: Other Other
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2016-03-22 10:11 UTC by Robert
Modified: 2017-01-03 19:50 UTC (History)
4 users (show)

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


Attachments
Xamarin Studio project that reproduces this issue (4.32 MB, application/x-zip-compressed)
2016-03-22 10:14 UTC, Robert
Details
Screenshot (39.53 KB, image/png)
2016-03-22 10:17 UTC, Robert
Details
Screenshot (43.62 KB, image/png)
2016-03-22 10:17 UTC, Robert
Details
Fixed sample using AppCompact Support (63.29 KB, application/zip)
2016-03-22 11:36 UTC, Rui Marinho
Details
The content of the navigation drawer (the Master page) is now drawn in a way that it overlaps the content of the Android status bar. (26.08 KB, image/png)
2016-03-22 13:55 UTC, Robert
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 Robert 2016-03-22 10:11:00 UTC
Overview
--------

The Toolbar Icon defined in a page assigned to MasterDetailPage.Master doesn't show in landscape mode when using a Tablet. Instead, a back button is shown.

See the attached screenshots.

Steps to Reproduce
------------------

   1. Run the attached sample on an Android tablet simulator/device.
   2. Rotate to Landscape

Actual Results
--------------

   The icon only appears properly in portrait mode.

   In landscape mode, a back button is shown instead.

Expected Results
----------------

   The icon "menu.png" should appear both in portrait and landscape mode.

Build Date & Platform
---------------------

   Xamarin.Forms 2.1.0.6529
   Device: Nexus 9, Android 6.0.1

Further info
------------

   It works as expected on phones.

   Possibly related bugs:
   "MasterDetail.Detail Icons don't appear in Toolbar while in Landscape on Tablets"
   -> https://bugzilla.xamarin.com/show_bug.cgi?id=36597
   
   Related forum threads:
   https://forums.xamarin.com/discussion/38038/masterdetailpage-menu-icon-is-a-back-button
   https://forums.xamarin.com/discussion/comment/113529/
Comment 1 Robert 2016-03-22 10:14:43 UTC
Created attachment 15483 [details]
Xamarin Studio project that reproduces this issue
Comment 2 Robert 2016-03-22 10:17:23 UTC
Created attachment 15484 [details]
Screenshot
Comment 3 Robert 2016-03-22 10:17:38 UTC
Created attachment 15485 [details]
Screenshot
Comment 4 Rui Marinho 2016-03-22 11:35:24 UTC
This is fixed if using the latest version with AppCompact support.

I m uploading your sample with the fixed version.
Comment 5 Rui Marinho 2016-03-22 11:36:52 UTC
Created attachment 15486 [details]
Fixed sample using AppCompact Support
Comment 6 Robert 2016-03-22 13:17:26 UTC
Thank you!

Why did you define "FormsTheme" in styles.xml? It isn't used anywhere.
Comment 7 Robert 2016-03-22 13:50:42 UTC
There is a new problem now. The content of the navigation drawer (the Master page) is drawn in a way that it overlaps the content of the Android status bar.

See the attached screenshot. (I have changed the background color to Red so it's easier to see.)

Do you know how to fix this?
Comment 8 Robert 2016-03-22 13:55:21 UTC
Created attachment 15487 [details]
The content of the navigation drawer (the Master page) is now drawn in a way that it overlaps the content of the Android status bar.
Comment 9 Rui Marinho 2016-03-22 14:51:36 UTC
Hi robert, maybe you can add a padding to the master page?
Comment 10 Robert 2016-03-22 14:53:33 UTC
Of course, but isn't there a better, cleaner solution?
Comment 11 Rajneesh Kumar 2016-04-21 17:14:27 UTC
I have checked this issue with the XF 2.2.0.23-pre4 and I am still getting same behavior as mentioned in the bug description.

Screencast: http://www.screencast.com/t/fVffwfJlwR5

This issue doesn't seems fixed to me, so as of now I am reopening this issue.

Please let me know that If I am missing something.

Thanks..!
Comment 12 Rui Marinho 2016-04-21 18:37:09 UTC
You should use the AppCompact version
Comment 13 Samantha Houts [MSFT] 2017-01-03 19:50:34 UTC
The original issue appears to be resolved when using the AppCompat backend. Marking this issue as resolved.