Bug 22845 - [Android] MasterDetailPage and ToolBar
Summary: [Android] MasterDetailPage and ToolBar
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: 1.2.3
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2014-09-10 15:58 UTC by Michel Chowanski
Modified: 2015-05-27 00:04 UTC (History)
5 users (show)

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

Bug example (394.05 KB, image/png)
2014-09-10 15:58 UTC, Michel Chowanski
Example project for reproducing (6.58 MB, application/x-zip-compressed)
2014-09-10 15:59 UTC, Michel Chowanski
Example and AVD Infos (77.59 KB, image/png)
2014-09-14 10:17 UTC, Michel Chowanski

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:

Description Michel Chowanski 2014-09-10 15:58:03 UTC
Created attachment 7988 [details]
Bug example

I found a bug with MasterDetailPage and ToolBarItems on Android. "ToolbarItemOrder.Primary" works fine, but if I set an item "ToolbarItemOrder.Secondary", it won't be visible. Example:

I set the following code:
this.ToolbarItems.Add(new ToolbarItem("Test Item", null, () => { }, ToolbarItemOrder.Primary));
this.ToolbarItems.Add(new ToolbarItem("Test Item 2", null, () => { }, ToolbarItemOrder.Secondary));

You will see "Test Item" but don't "Test Item 2" in the attached picture. It's hidden - I expect, that's it will be visible like here: http://cdn.vanillaforums.com/xamarin.vanillaforums.com/FileUpload/ae/2ffad16068342374d458726d8655d4.png
Comment 1 Michel Chowanski 2014-09-10 15:59:39 UTC
Created attachment 7989 [details]
Example project for reproducing
Comment 2 Arpit Jha 2014-09-11 08:21:48 UTC
I have checked this issue and unable to reproduce it.

I have tried to reproduce with the help of bug description.

I observed that ToolbarItem having ToolbarItemOrder primary shown on header and ToolbarItem having ToolbarItemOrder Secondary shown on click on right of primary ToolbarItem as expected.

    this.ToolbarItems.Add(new ToolbarItem("Test ItemP", null, () => { }, ToolbarItemOrder.Primary));
            this.ToolbarItems.Add(new ToolbarItem("Test Item 2", null, () => { }, ToolbarItemOrder.Secondary));
            this.ToolbarItems.Add(new ToolbarItem("Test Item P", null, () => { }, ToolbarItemOrder.Primary));
            this.ToolbarItems.Add(new ToolbarItem("Test Item 3", null, () => { }, ToolbarItemOrder.Secondary));

Let me know if I missed anything to reproduce it.

Screencast regarding same :
Environment Info:
VS Professional 2013
Comment 3 Michel Chowanski 2014-09-14 10:16:30 UTC
I have test it again and find out that's related to the Android version.

My test with Android 4.0.3 (see "ExampleAndAVD.png") reproduce the issue. With Version 4.2.2 I can reproduce it again.
But on Android Version 4.4.2 (API 19) is it working correct.

Can you check it again with an older Android Version?
Comment 4 Michel Chowanski 2014-09-14 10:17:02 UTC
Created attachment 8059 [details]
Example and AVD Infos
Comment 5 Sadik Ali 2014-11-04 09:19:28 UTC
We have checked this issue with the help of bug description and able to reproduce this issue 
We observed that API 16 does not display secondary toolbar and API 15 working fine.

Screencast regarding same:

Environment Info:
Microsoft Visual Studio Professional 2013
Version 12.0.30723.00 Update 3
Microsoft .NET Framework
Version 4.5.51641

Installed Version: Professional

Xamarin (8ca7d11db8a6f874c6cd2de6d9ca0f511867ce91)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin.Android (5474129af31e9d3a86cb7482c7c5c7a30ad315f1)
Visual Studio plugin to enable development for Xamarin.Android.

Xamarin.iOS (209abebbd8f1a292d042420edb45fa5fbd3f017b)
Visual Studio extension to enable development for Xamarin.iOS.
Comment 6 Jason Smith [MSFT] 2015-05-27 00:04:30 UTC
The problem is the phone you are testing on uses a hardware button to show that menu as such the normal on screen menu is being hidden by the OS. We do not control this.