I took the code I found for the Android MasterDetailPageRenderer in the Xamarin.Forms GitHub repo, and after some stubs / modifications got it to compile in my app. However, I am using a NavigationPage for the "detail" page and when I push a second page which has a custom renderer to this NavigationPage in Android, the screen is blank white because the size is 0x0 until I change orientations. I got a step further by creating a custom renderer for the NavigationPage which listens for a push event then calls Layout to forces the child views to layout. But now only some of the UI is displayed such as background colors until orientation is changed in the second pushed page.
My testing device:
Samsung Galaxy Tab Pro with v5.1.1 -- Note, a guy on stackoverflow said it worked for him using 6.0
I created a working example of this issue on my GitHub account which you can clone here:
Build and run CustomMasterDetail.Droid (Notice the UI is a MasterDetailPage)
Tap any item
The bottom blue bar has no page numbers.
Rotate orientation the page numbers display.
Stop the build
Comment out the entire class "MainMasterDetailPageRenderer.cs"
Build / run the app
Tap any item
Page numbers are laid out to start with!!!
My best guess is that something is going wrong related to adding views through code rather than AXML? Been stuck on this for awhile so any help would be awesome!!!