NinjaFocks NinjaFocks - 16 days ago 10
C# Question

Xamarin.Forms MasterDetailPage with TabbedView - Tab Title appearing when navigate via burger menu

I'm using Xamarin.Forms in developing an Android and iOS application. I've got a MasterDetailPage with a TabbedPage (homepage) as the Detail, which has 5 tabs on it and on the Master page (burger menu) I have two options which are Home or Account.

On iOS the tabs behave as expected in that the burger menu slides out over the top of them. On Android, the tabs are still clickable along the top of the screen - which I know is a Xamarin thing. It's expected behaviour according to the Xamarin Forums and a Bugzilla report which marks it as "RESOLVED NOT_ON_ROADMAP".

MY ISSUE IS that when I navigate to a different page via the burger menu the title of the tab last selected is still visible at the top of the page in the navigation bar. I don't want to get rid of the nav bar as I want the burger icon to appear so the user can still navigate back to the homepage.

Tabbed Page (homepage)

Account page - TAB 1 title still appearing

How can I get rid of the title on the new page?

21/11/16 EDIT:

The title seems to be attached to the burger icon - I noticed that when I click on the burger menu the whole thing is highlighted not just the icon. Is there a title icon or something which is being set?

Answer

In the end we solved this by putting

ActionBar.SetDisplayShowTitleEnabled(false);

in the Main Activity of the Android project!