Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
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
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.
I've found two problems with MasterDetailPage on Android. This is my first time posting, so if the bugs need to be split up into individual reports, just let me know.
1) When using SetPage to set a MasterDetailPage for the initial time on Android, the Action Bar will incorrectly show a back indicator.
2) Attempting to use SetPage again with another MasterDetailPage throws a Java.Lang.IllegalArgumentException : DrawerLayout must be measured with MeasureSpec.EXACTLY.
I have checked this issue and unable to reproduce it.
I have tried following steps to reproduce it .
1.Create a PCL Application.
2.Add NamedColor(.cs) ,NamedColorPage(.cs) and HomePage.cs
3.Inherit MasterDetailPage in HomePage.cs
4.Call HomePage.cs in App.cs
5.Call GetMainPage() in MainActivity.cs( Xamarin.Android ).
6.Run the application.
I observed that SetPage again with another MasterDetailPage does not throw any exception.
Please clarify your first point .
Let me know if i missed anything to reproduce this issue.
For issue (1), it'll show a back arrow instead of a hamburger icon if you don't explicitly set the icon. Just make sure your "Master" page has an "Icon" set.
Thanks Chase, I guess I was assuming it would just use the application icon (without the back arrow) if I failed to set one explicitly.
Rather than attempting to create new MasterDetail pages each time I clicked on something, I opted to just change the detail side of the page. Closing this issue.
I was finally able to track down the second issue mentioned above. Steps to reproduce:
1. SetPage() a NavigationPage with a ContentPage onto the screen.
2. SetHasNavigationBar to true on that ContentPage.
3. Call SetPage() with a MasterDetailPage while the previous page is still onscreen.
4. Java.Lang.IllegalArgumentException : DrawerLayout must be measured with
If the first page does not show a NavigationBar everything works fine.
I have a simple test project that reproduces the issue if need be.
I was not able to recreate the issue mentioned in comment #5 by following the steps to reproduce. I tested this using Xamarin Forms 1.4.2.
If you are still experiencing this problem, please provide the simple test project that reproduces the issue.
I can confirm this is no longer an issue in 1.4.2. Marking as RESOLVED.