Bug 59949 - Title Bars Disappear in Android
Summary: Title Bars Disappear in Android
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: 2.4.0
Hardware: PC Mac OS
: Normal normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2017-10-04 10:41 UTC by kyluke.m
Modified: 2018-05-01 11:50 UTC (History)
5 users (show)

Tags: title, navigation, ac
Is this bug a regression?: Yes
Last known good build:

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 for Bug 59949 on Developer Community or GitHub if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML or GitHub Markdown
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:

Description kyluke.m 2017-10-04 10:41:08 UTC
The title in the Navigation Bar in Navigation Pages Disappears when being set by either this.Title = "Title" in C# or Title="Title" in XAML. iOS 11 builds are unaffected.

Tested in Xamarin Forms:

Downgrading to Xamarin Forms v2.3.4.270 immediately fixes the problem.


Visual Studio Community 2017 for Mac
Version 7.1.5 (build 2)
	Mono (d15-3/14f2c81) (64-bit)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 502000224


.NET Core
Runtime: Not installed
SDK: Not installed
MSBuild SDKs: /Library/Frameworks/Mono.framework/Versions/5.2.0/lib/mono/msbuild/15.0/bin/Sdks

Version: 1.5.5
Speicherort: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler

Apple Developer Tools
Xcode 9.0 (13247)
Build 9A235

Version: (Visual Studio Community)
Hash: 152b654a
Branch: xcode9
Build date: 2017-09-15 02:25:56-0400

Version: (Visual Studio Community)
Android SDK:
	Unterstützte Android-Versionen:
		4.0.3  (API-Ebene 15)
		4.1    (API-Ebene 16)
		4.2    (API-Ebene 17)
		4.3    (API-Ebene 18)
		4.4    (API-Ebene 19)
		4.4.87 (API-Ebene 20)
		5.0    (API-Ebene 21)
		5.1    (API-Ebene 22)
		6.0    (API-Ebene 23)
		7.0    (API-Ebene 24)
		7.1    (API-Ebene 25)

Version der SDK-Tools: 25.2.5
Version der SDK-Plattformtools: 25.0.5
Version der SDK-Buildtools: 25.0.2

Java SDK: /usr
java version "1.8.0_101"
Java(TM) SE Runtime Environment (build 1.8.0_101-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.101-b13, mixed mode)

Android Designer EPL-Code ist hier verfügbar:

Xamarin Inspector
Version: 1.3.1
Hash: cbc48dd
Branch: 1.3-release
Build date: Thu, 21 Sep 2017 19:52:53 GMT
Client compatibility: 1

Version: (Visual Studio Community)

Build Information
Release ID: 701050002
Git revision: 7afedcaef8e7542e70e3cf8f9bdb26938b8c0876
Build date: 2017-09-15 08:39:58-04
Xamarin addins: 3262aadf811a18c12eac6742532d052b0139a808
Build lane: monodevelop-lion-d15-3-xcode9

Operating System
Mac OS X 10.12.6
Comment 1 Paul DiPietro [MSFT] 2017-10-04 15:47:18 UTC
Does this occur on a specific version of Android? We have not had reports of this issue in the prereleases and it doesn't appear to occur with the use of the most basic reproduction attempt.
Comment 2 kyluke.m 2017-10-05 05:22:14 UTC
This is on Android 7.0 on a Galaxy S6 Edge+.

I'm able to reproduce the issue every time.

1. Install Xamarin.Forms
2. Clean & Rebuild project
3. Deploy on device
4. Navigation bar titles appear

5. Upgrade to Xamarin.Forms
6. Clean & Rebuild project
7. Deploy on device
6. Navigation bar titles no longer appear
Comment 3 kyluke.m 2017-10-10 12:25:04 UTC
Hi Paul,

any update on this yet?
Comment 4 Paul DiPietro [MSFT] 2017-10-10 13:47:58 UTC
No, not at the moment. I will have to see if we can get a hold of that specific device in question to test against.
Comment 5 Paul DiPietro [MSFT] 2017-10-10 14:19:47 UTC
Okay, someone was able to test this to see it occurs.
Comment 6 Paul DiPietro [MSFT] 2017-10-10 14:37:16 UTC
From what we can tell, this occurs when a TabbedPage is involved, but not a basic NavigationPage+ContentPage.
Comment 7 kyluke.m 2017-10-11 15:06:55 UTC
I get this happening on a Navigation Page + Content Page combo. I don't use Tabbed Pages.
Comment 8 Paul DiPietro [MSFT] 2017-10-11 16:42:14 UTC
We haven't reproduced this with that combination. We're going to need more info about specific devices, Android versions, and so on where that occurs.
Comment 9 kyluke.m 2017-10-24 07:15:56 UTC
Hi Paul

The software configurations are listed in my first post, the device is a Samsung S6 Edge+ running Android 7.0.

It occurs when trying to show a ContentPage in a NavigationPage.

I'm not sure what more I can add. If there are specific things you would like to know, please shoot the questions off to me, I'll be happy to answer them.
Comment 10 Rogier 2017-10-24 09:42:58 UTC
I can add that this might have something to do with the theme.
My navigation page title text does not show up when I use:
but it does show with:
Comment 11 kyluke.m 2018-02-02 10:35:28 UTC
but it does show with:

This I can confirm happens to me too. This is a bug that still exists in
Comment 12 Paul Brenner 2018-03-07 19:42:22 UTC
I tried creating a sample project to post the issue to github, but could not reproduce the issue, even with changing the theme.

I'd suggest creating a repro project and posting to their github if you want them to look at this.
Comment 13 Rogier 2018-03-08 13:20:55 UTC
If anyone is still running into this bug you should be looking at changing your android base class. If you created your project a few years ago you're probably still using the ActionBarActivity base class. If you change that to a AppCompatActivity and also start using newer theme like @android:style/Theme.AppCompat.Light.DarkActionBar it should be fixed.
All newly created xamarin projects use this too, so you can peek at some of that code to see what your new mainactivity and styles should look like.

Hope this helps! :)
Comment 14 kyluke.m 2018-03-15 05:59:44 UTC
Thanks Rogier, I will test that out.
Comment 15 Nino Uzelac 2018-05-01 11:50:09 UTC
I had same issue but only sometimes (and on Android only) and it seems my problem was caused by using NavigationPage wrong. I changed from:

var MainPage = new MainPage(); // MainPage : TabbedPage
var Tab1 = new NavigationPage(new Tab1Page()); // Tab1Page : ContentPage
var Tab2 = new NavigationPage(new Tab2Page());


var MainPage = new NavigationPage(new MainPage());
var Tab1 = new Tab1Page();
var Tab2 = new Tab2Page();

Haven't stumbled upon this issue anymore.